mount
This commit is contained in:
parent
e9694b0c17
commit
ffdc0c74e1
2 changed files with 21 additions and 8 deletions
10
bash/alias/mount.sh
Normal file
10
bash/alias/mount.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
alias m="\
|
||||
mount \
|
||||
"
|
||||
|
||||
# remount read-only medium in read-write
|
||||
alias remount="\
|
||||
mount \
|
||||
-o \"remount,rw\" \
|
||||
\"/usr/lib/live/mount/medium\" \
|
||||
"
|
|
@ -1,9 +1,3 @@
|
|||
alias m='mount'
|
||||
|
||||
# remount read-only medium in read-write
|
||||
alias remount='mount -o remount,rw /usr/lib/live/mount/medium'
|
||||
|
||||
|
||||
function mo {
|
||||
local directory="${1}"
|
||||
local file
|
||||
|
@ -44,10 +38,19 @@ for f in 'dev' 'dev/pts' 'proc' 'sys' ; do
|
|||
done
|
||||
}
|
||||
|
||||
alias cr='chroot overlay/mount'
|
||||
alias cr="\
|
||||
chroot \
|
||||
\"overlay/mount\" \
|
||||
"
|
||||
|
||||
alias cru="\
|
||||
chroot \
|
||||
--userspec \"1000:1000\" \
|
||||
\"overlay/mount\" \
|
||||
"
|
||||
|
||||
function ur {
|
||||
for f in 'dev/pts' 'dev' 'proc' 'sys' ; do
|
||||
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do
|
||||
umount --lazy "overlay/mount/${f}"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue