summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2024-11-01 12:43:15 +0000
committerSerge Schneider <serge@raspberrypi.com>2024-11-01 12:43:15 +0000
commite335a4e8b63ac76d4e915381f0956ca2865f2d32 (patch)
treecdd9dc0a2ef3ef503104bfa0dc7f14edd5b91a58
parentda8f0063ea3716fca03510146047df961ed242db (diff)
parentd7c4d3078c293441f225028b4790d8a4811cc06f (diff)
Merge branch 'master' into arm64
-rwxr-xr-xexport-image/05-finalise/01-run.sh7
-rw-r--r--stage2/01-sys-tweaks/00-patches/02-swap.diff2
2 files changed, 6 insertions, 3 deletions
diff --git a/export-image/05-finalise/01-run.sh b/export-image/05-finalise/01-run.sh
index 89c60b9..c59c23b 100755
--- a/export-image/05-finalise/01-run.sh
+++ b/export-image/05-finalise/01-run.sh
@@ -4,8 +4,6 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
INFO_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.info"
SBOM_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.sbom"
-sed -i 's/^update_initramfs=.*/update_initramfs=all/' "${ROOTFS_DIR}/etc/initramfs-tools/update-initramfs.conf"
-
on_chroot << EOF
update-initramfs -k all -c
if [ -x /etc/init.d/fake-hwclock ]; then
@@ -16,6 +14,11 @@ if hash hardlink 2>/dev/null; then
fi
EOF
+if [ -f "${ROOTFS_DIR}/etc/initramfs-tools/update-initramfs.conf" ]; then
+ sed -i 's/^update_initramfs=.*/update_initramfs=yes/' "${ROOTFS_DIR}/etc/initramfs-tools/update-initramfs.conf"
+ sed -i 's/^MODULES=.*/MODULES=dep/' "${ROOTFS_DIR}/etc/initramfs-tools/initramfs.conf"
+fi
+
if [ -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" ]; then
chmod 700 "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config"
fi
diff --git a/stage2/01-sys-tweaks/00-patches/02-swap.diff b/stage2/01-sys-tweaks/00-patches/02-swap.diff
index f542ec2..52cdda4 100644
--- a/stage2/01-sys-tweaks/00-patches/02-swap.diff
+++ b/stage2/01-sys-tweaks/00-patches/02-swap.diff
@@ -7,7 +7,7 @@ Index: jessie-stage2/rootfs/etc/dphys-swapfile
# set size to absolute value, leaving empty (default) then uses computed value
# you most likely don't want this, unless you have an special disk situation
-#CONF_SWAPSIZE=
-+CONF_SWAPSIZE=200
++CONF_SWAPSIZE=512
# set size to computed value, this times RAM size, dynamically adapts,
# guarantees that there is enough swap without wasting disk space on excess