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:
parent
14ed7ccceb
commit
6ff3568459
6
features.in/live-install/stage1/scripts.d/05-live-install-no-hardlinks
Executable file
6
features.in/live-install/stage1/scripts.d/05-live-install-no-hardlinks
Executable 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user