From ddbef9392b80c5fbd0567d5359aa246bdd54ff15 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 13 Sep 2018 13:43:18 +0200 Subject: [PATCH] prepare-root.sh: don't move away vmlinuz --- prepare-root.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prepare-root.sh b/prepare-root.sh index a50133f..8049402 100755 --- a/prepare-root.sh +++ b/prepare-root.sh @@ -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