|
|
@ -144,27 +144,32 @@ default=ubuntu
|
|
|
|
[ubuntu]
|
|
|
|
[ubuntu]
|
|
|
|
target = /boot
|
|
|
|
target = /boot
|
|
|
|
image = /boot/vmlinuz
|
|
|
|
image = /boot/vmlinuz
|
|
|
|
ramdisk = /boot/initrd.img
|
|
|
|
|
|
|
|
parameters = root=LABEL=cloudimg-rootfs
|
|
|
|
parameters = root=LABEL=cloudimg-rootfs
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
# Kernel initramfs hooks end up creating a copy
|
|
|
|
ZIPL_EXTRA_PARAMS=
|
|
|
|
# rather than a symlink FIXME
|
|
|
|
if [ -e mountpoint/boot/initrd.img-* ]; then
|
|
|
|
pushd mountpoint/boot
|
|
|
|
# Kernel initramfs hooks end up creating a copy
|
|
|
|
ln -sf initrd.img-* initrd.img
|
|
|
|
# rather than a symlink FIXME
|
|
|
|
popd
|
|
|
|
pushd mountpoint/boot
|
|
|
|
|
|
|
|
ln -sf initrd.img-* initrd.img
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "ramdisk = /boot/initrd.img" >> mountpoint/etc/zipl.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZIPL_EXTRA_PARAMS=--ramdisk=/boot/initrd.img
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Create bootmap file
|
|
|
|
# Create bootmap file
|
|
|
|
chroot mountpoint /sbin/zipl -V \
|
|
|
|
chroot mountpoint /sbin/zipl -V \
|
|
|
|
--image=/boot/vmlinuz \
|
|
|
|
--image=/boot/vmlinuz \
|
|
|
|
--ramdisk=/boot/initrd.img \
|
|
|
|
|
|
|
|
--parameters='root=LABEL=cloudimg-rootfs' \
|
|
|
|
--parameters='root=LABEL=cloudimg-rootfs' \
|
|
|
|
--target=/boot/ \
|
|
|
|
--target=/boot/ \
|
|
|
|
--targetbase=$loop_device \
|
|
|
|
--targetbase=$loop_device \
|
|
|
|
--targettype=SCSI \
|
|
|
|
--targettype=SCSI \
|
|
|
|
--targetblocksize=512 \
|
|
|
|
--targetblocksize=512 \
|
|
|
|
--targetoffset=2048
|
|
|
|
--targetoffset=2048 \
|
|
|
|
|
|
|
|
$ZIPL_EXTRA_PARAMS
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$BOOT_MOUNTPOINT" ]; then
|
|
|
|
if [ -n "$BOOT_MOUNTPOINT" ]; then
|
|
|
|