Add mount and unmount options.
This commit is contained in:
parent
496514122e
commit
713aa16ddf
@ -29,7 +29,7 @@ Description=Archbox init
|
||||
PartOf=multi-user.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/share/archbox/bin/archboxinit start
|
||||
ExecStart=<install prefix>/bin/archbox --mount
|
||||
Type=oneshot
|
||||
User=root
|
||||
|
||||
|
10
archbox.bash
10
archbox.bash
@ -33,6 +33,8 @@ OPTIONS:
|
||||
-c, --create URL Creates a chroot enviroment.
|
||||
-e, --enter Enters chroot enviroment.
|
||||
-h, --help Displays this help message.
|
||||
-m, --mount Mount Archbox directories.
|
||||
-u, --umount Unmount Archbox directories.
|
||||
--remount-run Remount /run in chroot enviroment.
|
||||
--mount-runtime-only Mount XDG_RUNTIME_DIR to chroot enviroment.
|
||||
|
||||
@ -95,6 +97,14 @@ case $1 in
|
||||
$PRIV $PREFIX/share/archbox/bin/archbox enter
|
||||
exit $?
|
||||
;;
|
||||
-m|--mount)
|
||||
asroot
|
||||
$PREFIX/share/archbox/bin/archboxinit start
|
||||
;;
|
||||
-u|--umount)
|
||||
asroot
|
||||
$PREFIX/share/archbox/bin/archboxinit stop
|
||||
;;
|
||||
--remount-run)
|
||||
$PRIV $PREFIX/share/archbox/bin/remount_run
|
||||
exit $?
|
||||
|
Loading…
Reference in New Issue
Block a user