feat: Vfs and Ext2 support. Code style/attribute improvements
Added VFS and Ext2 support. Optimized attributes of methods to improve code highlighting. Printf attribute, malloc attribute, etc.
This commit is contained in:
15
rootfs/umount_rootfsh.sh
Executable file
15
rootfs/umount_rootfsh.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
function log() {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
LB_DEV=$(findmnt -n -o SOURCE mnt)
|
||||
|
||||
if [ -z "${LB_DEV}" ]; then
|
||||
log "Not mounted"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sudo umount mnt
|
||||
sudo losetup -d "${LB_DEV%p1}"
|
||||
Reference in New Issue
Block a user