Merge "Allow absolute path to image with ironic-agent"

This commit is contained in:
Jenkins 2014-12-23 23:08:50 +00:00 committed by Gerrit Code Review
commit ebe166448f

View File

@ -7,14 +7,14 @@ set -o pipefail
source $_LIB/img-functions source $_LIB/img-functions
WORKDIR=$(pwd) IMAGE_PATH=$(readlink -f $IMAGE_NAME)
cd $TARGET_ROOT cd $TARGET_ROOT
echo "#disabled" > ./tmp/fstab.new echo "#disabled" > ./tmp/fstab.new
sudo mv ./tmp/fstab.new ./etc/fstab sudo mv ./tmp/fstab.new ./etc/fstab
sudo ln -s ./sbin/init ./ sudo ln -s ./sbin/init ./
sudo find . -path ./sys -prune -o -path ./proc -prune -o -print | sudo cpio -o -H newc | gzip > $WORKDIR/$IMAGE_NAME.initramfs sudo find . -path ./sys -prune -o -path ./proc -prune -o -print | sudo cpio -o -H newc | gzip > ${IMAGE_PATH}.initramfs
select_boot_kernel_initrd $TARGET_ROOT select_boot_kernel_initrd $TARGET_ROOT
sudo cp $BOOTDIR/$KERNEL $WORKDIR/$IMAGE_NAME.vmlinuz sudo cp $BOOTDIR/$KERNEL ${IMAGE_PATH}.vmlinuz