# directory. Particularly useful in creating recovery disks that need to be
# able to also work with recovery partitioning schemes.
#
# directory. Particularly useful in creating recovery disks that need to be
# able to also work with recovery partitioning schemes.
#
echo
echo "initrd.gz is the absolute path to the original gzipped initramfs"
echo "<path-to-new-initrd.gz> is the destination directory for the new gzipped initramfs"
echo
echo "initrd.gz is the absolute path to the original gzipped initramfs"
echo "<path-to-new-initrd.gz> is the destination directory for the new gzipped initramfs"
fi
cd "$TEMPDIR"
zcat "$1" | cpio -id
uuidgen -r > conf/uuid.conf
find . | cpio --quiet --dereference -o -H newc | gzip > "$GZIPDIR/initrd.gz"
fi
cd "$TEMPDIR"
zcat "$1" | cpio -id
uuidgen -r > conf/uuid.conf
find . | cpio --quiet --dereference -o -H newc | gzip > "$GZIPDIR/initrd.gz"
-if [ "$(ls "$CASPERDIR/casper-uuid"-* >/dev/null 2>&1 | wc -l)" = 1 ]; then
- cp conf/uuid.conf "$CASPERDIR/casper-uuid"-*
+if [ "$(ls "$LIVEDIR/live-uuid"-* >/dev/null 2>&1 | wc -l)" = 1 ]; then
+ cp conf/uuid.conf "$LIVEDIR/live-uuid"-*