Skip to content
Snippets Groups Projects
Commit c90b8823 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

60-update-initrd: Always copy vmlinuz from $CHROOTDIR to $CDDIR


The vmlinuz on $CHROOTDIR is updated when a new kernel is installed
through 30-upgrade, and need to be copied to $CDDIR/casper so the
live image boots correctly.

Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent a4426b3c
Branches
No related tags found
No related merge requests found
......@@ -113,10 +113,8 @@ cp -f "$TEMPLATES"/casper/10adduser ./scripts/casper-bottom/25adduser
find | cpio --quiet --dereference -o -H newc | lzma -7 \
> $CDDIR/casper/initrd.lz
if [ -e "$TMP/NEW_KERNEL" ]; then
cp -af $(sed 's/initrd.img/vmlinuz/g' <<< $INITRD) \
"$CDDIR"/casper/vmlinuz
fi
cd "$PREFIX"
......
......@@ -80,10 +80,8 @@ find | cpio --quiet --dereference -o -H newc | lzma -7 \
> $CDDIR/casper/initrd.lz
set -o pipefail
if [ -e "$TMP/NEW_KERNEL" ]; then
cp -af $(sed 's/initrd.img/vmlinuz/g' <<< $INITRD) \
"$CDDIR"/casper/vmlinuz
fi
cd "$PREFIX"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment