diff options
-rwxr-xr-x | scripts/build/lb_binary_disk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/build/lb_binary_disk b/scripts/build/lb_binary_disk index b592b889e..b1c47287b 100755 --- a/scripts/build/lb_binary_disk +++ b/scripts/build/lb_binary_disk @@ -86,12 +86,12 @@ fi case "${LB_INITRAMFS}" in casper) - for INITRD in binary/casper/initrd.img* + for INITRD in $(ls binary/casper/initrd.img* > /dev/null 2>&1) do - mkdir -p uuid - cd uuid + mkdir -p binary/uuid + cd binary/uuid - zcat "../${INITRD}" | cpio --quiet -id conf/uuid.conf + zcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf if [ -e conf/uuid.conf ] then @@ -100,8 +100,8 @@ case "${LB_INITRAMFS}" in Echo_warning "Failed to find casper uuid.conf in '${INITRD}'" fi - cd .. - rm -rf uuid + cd ${OLDPWD} + rm -rf binary/uuid done ;; esac |