prepare-root.sh: don't move away vmlinuz

This commit is contained in:
Harald Hoyer 2018-09-13 13:43:18 +02:00
parent 61f55d1612
commit ddbef9392b

View file

@ -466,7 +466,8 @@ sed -i -e "s#VERSION_ID=.*#VERSION_ID=$VERSION_ID#" "$sysroot"/etc/os-release
sed -i -e "s#NAME=.*#NAME=$NAME#" "$sysroot"/etc/os-release
mv -v "$sysroot"/boot/*/*/initrd "$MY_TMPDIR"/
mv -v "$sysroot"/lib/modules/*/vmlinuz "$MY_TMPDIR"/linux
cp "$sysroot"/lib/modules/*/vmlinuz "$MY_TMPDIR"/linux
rm -fr "$sysroot"/{boot,root}
ln -sfnr "$sysroot"/data/root "$sysroot"/root
mkdir -p "$sysroot"/usr/etc