Skip to content
Snippets Groups Projects
Commit 7aae8077 authored by Diego Pasqualin's avatar Diego Pasqualin
Browse files

60-update-initrd_minicom: Add quotes on vars to prevent problems with spaces

parent 483cceef
Branches
No related tags found
No related merge requests found
......@@ -34,14 +34,14 @@ mkdir -p "$TMP"/initrd
cd "$TMP"/initrd || return 1
mkinitramfs -o /boot/initrd$(uname -r).img $(uname -r)
INITRD="$(ls $CHROOTDIR/boot/initrd* | sort | tail -n1)"
INITRD="$(ls "$CHROOTDIR"/boot/initrd* | sort | tail -n1)"
if file $INITRD | grep -q "gzip"; then
gunzip -c $INITRD | cpio -id
else
unlzma -c -S .lz $INITRD | cpio -id
fi
unlzma -c -S .lz $CDDIR/casper/initrd.lz | cpio -id
unlzma -c -S .lz "$CDDIR"/casper/initrd.lz | cpio -id
# Change the live user name
......@@ -66,14 +66,14 @@ esac
echo "export \"FLAVOUR=le5\"" >> ./etc/casper.conf
cp -f $TEMPLATES/casper/10adduser ./scripts/casper-bottom/25adduser
cp -f "$TEMPLATES"/casper/10adduser ./scripts/casper-bottom/25adduser
# Regenarete initrd image
find ./ | cpio --quiet --dereference -o -H newc | lzma -7 \
> $CDDIR/casper/initrd.lz
> "$CDDIR"/casper/initrd.lz
cp -af $(sed 's/initrd.img/vmlinuz/g' <<< $INITRD) \
$CDDIR/casper/vmlinuz
"$CDDIR"/casper/vmlinuz
cd "$PREFIX"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment