ironic-agent: exclude content of /tmp from initramfs
/tmp does not contain anything useful anyway, and excluding its content makes the initramfs smaller too. Change-Id: Ia72867e0cdebacf668ac1a1f551a965da0d69694
This commit is contained in:
parent
5617264aab
commit
92dab2c82a
@ -18,7 +18,7 @@ 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 > ${IMAGE_PATH}.initramfs
|
sudo find . -path ./sys -prune -o -path ./proc -prune -o -path './tmp/*' -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 ${IMAGE_PATH}.vmlinuz
|
sudo cp $BOOTDIR/$KERNEL ${IMAGE_PATH}.vmlinuz
|
||||||
|
Loading…
Reference in New Issue
Block a user