Split off mtab related activities

This commit is contained in:
2025-12-24 16:28:18 -05:00
parent 3902f873e9
commit 637f5b69db
2 changed files with 9 additions and 4 deletions

View File

@@ -43,10 +43,7 @@ else
fi
if [[ ! -f "/etc/mtab" ]]; then
ln \
-s \
/proc/self/mounts \
/etc/mtab
"${baseDir}/mtab.sh"
fi
if [[ "${ID}" == 'debian' ]] || [[ "${ID}" == 'elementary' ]]; then

8
mtab.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
ln \
-s \
/proc/self/mounts \
/etc/mtab