Browse Source
The squasn mount points are recorded in text file so later clean up script can umount them, this is not needed, the mount points are fixed so just detect the umount by hardcoded pattern.master


2 changed files with 5 additions and 13 deletions
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash |
||||
SQUASH_MNT_REC=/squash/mounts |
||||
|
||||
mapfile -t SQUASH_MNTS < $SQUASH_MNT_REC |
||||
|
||||
umount --lazy -- "${SQUASH_MNTS[@]}" |
||||
mnt="/squash/root" |
||||
for dir in jsquash/root/*; do |
||||
mnt="$mnt ${dir#$SQUASH_MNT}" |
||||
done |
||||
umount --lazy -- $mnt |
||||
|
Loading…
Reference in new issue