Revision 5a320e32 snf-image-host/snf-image-update-helper.in

b/snf-image-host/snf-image-update-helper.in
224 224
fi
225 225
echo "done"
226 226

  
227
kernel=$(readlink -en "$target/vmlinuz")
228
initrd=$(readlink -en "$target/initrd.img")
227
kernel="$target/$(chroot "$target" readlink -en /vmlinuz)"
228
initrd="$target/$(chroot "$target" readlink -en /initrd.img)"
229 229

  
230 230
echo "Moving $(basename "$kernel") and $(basename "$initrd") to \`$HELPER_DIR'"
231
mv "$kernel" "$initrd" "$HELPER_DIR"
231
cp "$kernel" "$initrd" "$HELPER_DIR"
232 232

  
233 233
kernel=$(basename "$kernel")
234 234
initrd=$(basename "$initrd")
235 235

  
236 236
(cd "$HELPER_DIR"; ln -fs "$kernel" kernel; ln -fs "$initrd" initrd)
237 237

  
238
rm "$target/vmlinuz" "$target/initrd.img"
239

  
240 238
echo "Installing snf-image-helper pkg in the new image..."
241 239
cp "$HELPER_PKG" "$target/tmp/"
242 240
pkg_name=$(basename "$HELPER_PKG")

Also available in: Unified diff