Change commands to pack a bootstrap image

A command like 'find /tmp/initram|cpio -o >initram' will produce a
broken directory structure inside of an archive:
    /tmp/initram/etc
    /tmp/initram/var
    ...

To avoid that 'find' must be run in a current work dir, so you should
'cd' to /tmp/initram first.

Change-Id: I19c7107ba87b8909b2ac7bb6cb51551328188bfa
Closes-Bug: #1546835
This commit is contained in:
Andrei Danin 2016-02-17 18:36:25 -08:00 committed by Svetlana Karslioglu
parent 643a407d66
commit ff579642e4

View File

@ -124,7 +124,8 @@ Let's assume that the Fuel Master node has been deployed:
::
tar -xzvf dd-src.tar.gz
find dd-src/ | cpio --quiet -o -H newc | gzip -9 > /tmp/initrd_update.img
cd dd-src
find . | cpio --quiet -o -H newc | gzip -9 > /tmp/initrd_update.img
#. Copy into the TFTP (PXE) bootstrap folder:
@ -223,7 +224,8 @@ To change initramfs image, follow these steps:
::
find /tmp/initrd-orig/initramfs | cpio --quiet -o -H newc | gzip -9 > /tmp/initramfs.img.new
cd /tmp/initrd-orig/initramfs
find . | cpio --quiet -o -H newc | gzip -9 > /tmp/initramfs.img.new
#. Clean up. Remove */tmp/initrd-orig* temporary folder: