aboutsummaryrefslogtreecommitdiffstats
path: root/stage2/01-sys-tweaks/01-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stage2/01-sys-tweaks/01-run.sh')
-rwxr-xr-xstage2/01-sys-tweaks/01-run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh
index 9ac6542..8014d56 100755
--- a/stage2/01-sys-tweaks/01-run.sh
+++ b/stage2/01-sys-tweaks/01-run.sh
@@ -246,7 +246,8 @@ on_chroot <<EOF
mv -f "/boot/initrd.img-\${KVERSION}" /boot/sys_${TARGET_ARCH}_000/initrd.img
fi
if [ -f "/boot/config-\${KVERSION}" ] ; then
- mv -f "/boot/config-\${KVERSION}" /boot/sys_${TARGET_ARCH}_000/config
+ # keep copy in location as required by mkinitramfs (debian 12)
+ cp -a "/boot/config-\${KVERSION}" /boot/sys_${TARGET_ARCH}_000/config
fi
if [ -f "/boot/System.map-\${KVERSION}" ] ; then
mv -f "/boot/System.map-\${KVERSION}" /boot/sys_${TARGET_ARCH}_000/System.map