In Fossapup64 initrd's init script, the sfs files (eg. adrv_fossapup64_9.5.sfs) is mounted like this:
Code: Select all
losetup -r $ONE_LOOP $ONE_FN
...
mount -r -t squashfs -o noatime $ONE_LOOP $SFS_MP > /dev/console 2>&1
I think this means the sfs is first mapped to a loop device (eg. /dev/loop5), then the loop is mounted to a directory (eg. /pup_a), which by further mounting is added to the aufs stack.
But near the end of this script, right before switch_root to /pup_new, these folders are unmounted:
Code: Select all
umount /sys
umount /dev
umount /proc
My question is, when /dev is unmounted, why does it not break the aufs stack? Doesn't the sfs file (eg. adrv_fossapup64_9.5.sfs) still need to stay connected to /dev/loopx?