stage2, live-install: --no-hardlinks to squashcfg.mk if LIVE_INSTALL specified

--no-hardlinks is only needed for live, which will be installed.
This commit is contained in:
Anton Midyukov 2023-12-07 10:47:58 +07:00
parent 14ed7ccceb
commit 6ff3568459
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -55,4 +55,4 @@ options()
fi fi
} }
echo "PACK_SQUASHFS_OPTS=-no-recovery -no-hardlinks `options`" > /.image/squashcfg.mk echo "PACK_SQUASHFS_OPTS=-no-recovery `options`" > /.image/squashcfg.mk