mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
#set -e, lockfile-remove, typo, missing debug line
This commit is contained in:
parent
9bc2006ba3
commit
759126414e
1 changed files with 6 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
# https://github.com/iiab/iiab/blob/master/roles/usb_lib/files/usbmount/copyright
|
# https://github.com/iiab/iiab/blob/master/roles/usb_lib/files/usbmount/copyright
|
||||||
# https://github.com/rbrito/usbmount/blob/master/debian/copyright
|
# https://github.com/rbrito/usbmount/blob/master/debian/copyright
|
||||||
set -e
|
#set -e
|
||||||
exec > /dev/null 2>&1
|
exec > /dev/null 2>&1
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
@ -106,6 +106,7 @@ if [ "$1" = add ]; then
|
||||||
if [ $BOOTFW_DEV = /$DEVNAME ]; then
|
if [ $BOOTFW_DEV = /$DEVNAME ]; then
|
||||||
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
||||||
log debug "skipping BOOTFS_DEV $BOOTFS_DEV mounted at /boot/firmware"
|
log debug "skipping BOOTFS_DEV $BOOTFS_DEV mounted at /boot/firmware"
|
||||||
|
lockfile-remove /var/run/usbmount/.mount
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
ROOT_DEV=$(/usr/bin/findmnt -no source /)
|
ROOT_DEV=$(/usr/bin/findmnt -no source /)
|
||||||
|
@ -113,12 +114,15 @@ if [ "$1" = add ]; then
|
||||||
if [ $ROOT_DEV = /$DEVNAME ]; then
|
if [ $ROOT_DEV = /$DEVNAME ]; then
|
||||||
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
||||||
log debug "skipping ROOT_DEV $ROOT_DEV mounted at /"
|
log debug "skipping ROOT_DEV $ROOT_DEV mounted at /"
|
||||||
|
lockfile-remove /var/run/usbmount/.mount
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
BOOT_DEV=$(/usr/bin/findmnt -no source /boot)
|
BOOT_DEV=$(/usr/bin/findmnt -no source /boot)
|
||||||
log debug "BOOT_DEV $BOOT_DEV"
|
log debug "BOOT_DEV $BOOT_DEV"
|
||||||
if [ $BOOT_DEV = /$DEVNAME ]; then
|
if [ $BOOT_DEV = /$DEVNAME ]; then
|
||||||
log debug "skipping BOOTFS_DEV $BOOT_DEV mount as /boot"
|
log debug "/$DEVNAME contains filesystem type $FSTYPE"
|
||||||
|
log debug "skipping BOOT_DEV $BOOT_DEV mount as /boot"
|
||||||
|
lockfile-remove /var/run/usbmount/.mount
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue