commit d8bbed8a7db2aef75b88958ebfd52b49dad77774
parent 9e779f05d492202b3e461aaac143bb01f5aae7b4
Author: ccx <ccx@te2000.cz>
Date: Thu, 7 Mar 2024 17:09:46 +0000
Generate fileset shell script as a separate file
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/postinstall b/postinstall
@@ -106,7 +106,8 @@ setup_fileset() {
)
$rsync --delete-excluded --log-file $SETUP_DIR/rsync.log.get / $SETUP_DIR/files.pre/ || return $?
cp -a --reflink=auto $SETUP_DIR/files.pre $SETUP_DIR/files.post || return $?
- ./command/fsapply -x $SETUP_DIR/files.post $PWD/config/postinstall.fileset || exit $?
+ ./command/fileset /config/postinstall.fileset >$SETUP_DIR/files.sh || exit $?
+ (cd $SETUP_DIR/files.post && exec sh -x ../files.sh) || exit $?
zf_mkdir $SETUP_DIR/files.bak || return $?
revert+=( revert_fileset )
$rsync --log-file $SETUP_DIR/rsync.log.put $SETUP_DIR/files.post/ / --backup --backup-dir=$SETUP_DIR/files.bak || return $?