mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-04 07:27:19 +08:00
Update install.sh
This commit is contained in:
parent
ec282b9c9b
commit
a959176037
@ -274,7 +274,7 @@ rm -f "$MOUNT/.SynoUpgradePackages/ActiveInsight-"*
|
||||
|
||||
INDEX_DB=""
|
||||
if [ -s "$IDB.txz" ]; then
|
||||
INDEX_DB="$MOUNT/usr/syno/synoman/indexdb/"
|
||||
INDEX_DB="$MOUNT/usr/syno/synoman/indexdb"
|
||||
mkdir -p "$INDEX_DB"
|
||||
fi
|
||||
|
||||
@ -284,7 +284,7 @@ NUMBLOCKS="2097152" # (16777216 * 512) / 4096
|
||||
MSG="Installing system partition..."
|
||||
|
||||
fakeroot -- bash -c "set -Eeu;\
|
||||
[ -d $INDEX_DB ] && tar xpfJ $IDB.txz --absolute-names -C $INDEX_DB;\
|
||||
[ -d $INDEX_DB ] && tar xpfJ $IDB.txz --absolute-names -C $INDEX_DB/;\
|
||||
tar xpfJ $HDA.txz --absolute-names --skip-old-files -C $MOUNT/;\
|
||||
printf '%b%s%b' '\E[1;34m❯ \E[1;36m' 'Install: $MSG' '\E[0m\n';\
|
||||
mke2fs -q -t ext4 -b 4096 -d $MOUNT/ -L $LABEL -F -E offset=$OFFSET $SYSTEM $NUMBLOCKS"
|
||||
|
Loading…
x
Reference in New Issue
Block a user