From 6ff3568459bdae379737e8e07134e95117c0d5a1 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Thu, 7 Dec 2023 10:47:58 +0700 Subject: [PATCH] stage2, live-install: --no-hardlinks to squashcfg.mk if LIVE_INSTALL specified --no-hardlinks is only needed for live, which will be installed. --- .../stage1/scripts.d/05-live-install-no-hardlinks | 6 ++++++ features.in/stage2/stage1/scripts.d/03-test-kernel | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 features.in/live-install/stage1/scripts.d/05-live-install-no-hardlinks diff --git a/features.in/live-install/stage1/scripts.d/05-live-install-no-hardlinks b/features.in/live-install/stage1/scripts.d/05-live-install-no-hardlinks new file mode 100755 index 00000000..c927d15f --- /dev/null +++ b/features.in/live-install/stage1/scripts.d/05-live-install-no-hardlinks @@ -0,0 +1,6 @@ +#!/bin/sh -efu + +[ -n "${GLOBAL_LIVE_INSTALL:-}" ] || exit 0 +[ -s /.image/squashcfg.mk ] || exit 1 + +sed -i 's/PACK_SQUASHFS_OPTS=/PACK_SQUASHFS_OPTS=-no-hardlinks /' /.image/squashcfg.mk diff --git a/features.in/stage2/stage1/scripts.d/03-test-kernel b/features.in/stage2/stage1/scripts.d/03-test-kernel index 209b831a..f8af5615 100755 --- a/features.in/stage2/stage1/scripts.d/03-test-kernel +++ b/features.in/stage2/stage1/scripts.d/03-test-kernel @@ -55,4 +55,4 @@ options() fi } -echo "PACK_SQUASHFS_OPTS=-no-recovery -no-hardlinks `options`" > /.image/squashcfg.mk +echo "PACK_SQUASHFS_OPTS=-no-recovery `options`" > /.image/squashcfg.mk