Update README.
This commit is contained in:
parent
715fc2259a
commit
79e443c237
21
README.md
21
README.md
@ -29,7 +29,7 @@ Description=Archbox init
|
|||||||
PartOf=multi-user.target
|
PartOf=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/archbox --mount
|
ExecStart=/usr/local/share/archbox/bin/init start
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User=root
|
User=root
|
||||||
|
|
||||||
@ -38,7 +38,10 @@ WantedBy=multi-user.target
|
|||||||
```
|
```
|
||||||
Thanks to [@SamsiFPV](https://github.com/SamsiFPV)
|
Thanks to [@SamsiFPV](https://github.com/SamsiFPV)
|
||||||
|
|
||||||
If you don't use systemd, either create your own init service, or create a @reboot cronjob.
|
If you don't use systemd, either create your own init service, or create a @reboot cronjob :
|
||||||
|
```
|
||||||
|
@reboot /usr/local/share/archbox/bin/init start
|
||||||
|
```
|
||||||
### Removing chroot environment
|
### Removing chroot environment
|
||||||
**IMPORTANT**, Make sure you've unmounted everything in chroot environment, it's better to remove the init script and reboot to unmount everything. if you can't reboot for some reason, do :
|
**IMPORTANT**, Make sure you've unmounted everything in chroot environment, it's better to remove the init script and reboot to unmount everything. if you can't reboot for some reason, do :
|
||||||
```
|
```
|
||||||
@ -70,14 +73,18 @@ archbox sudo pacman -Syu
|
|||||||
You may want to add these rules if you want to use Archbox without password (assuming the install prefix is ```/usr/local``` and you're in group ```wheel```) :
|
You may want to add these rules if you want to use Archbox without password (assuming the install prefix is ```/usr/local``` and you're in group ```wheel```) :
|
||||||
#### Sudo
|
#### Sudo
|
||||||
```
|
```
|
||||||
%wheel ALL=(root) NOPASSWD: /usr/local/share/archbox/bin/archbox,/usr/local/share/archbox/bin/copyresolv,/usr/local/share/archbox/bin/remount_run,/usr/local/share/archbox/bin/archboxinit
|
%wheel ALL=(root) NOPASSWD:
|
||||||
|
/usr/local/share/archbox/bin/enter,
|
||||||
|
/usr/local/share/archbox/bin/exec,
|
||||||
|
/usr/local/share/archbox/bin/uth,
|
||||||
|
/usr/local/share/archbox/bin/init
|
||||||
```
|
```
|
||||||
#### Doas
|
#### Doas
|
||||||
```
|
```
|
||||||
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/archbox
|
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/enter
|
||||||
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/copyresolv
|
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/exec
|
||||||
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/remount_run
|
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/uth
|
||||||
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/archboxinit
|
permit nopass :wheel as root cmd /usr/local/share/archbox/bin/init
|
||||||
```
|
```
|
||||||
### Misc
|
### Misc
|
||||||
#### Systemd services
|
#### Systemd services
|
||||||
|
@ -95,20 +95,16 @@ case $1 in
|
|||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
-m|--mount)
|
-m|--mount)
|
||||||
storeenv
|
|
||||||
$PRIV $PREFIX/share/archbox/bin/init start
|
$PRIV $PREFIX/share/archbox/bin/init start
|
||||||
;;
|
;;
|
||||||
-u|--umount)
|
-u|--umount)
|
||||||
storeenv
|
|
||||||
$PRIV $PREFIX/share/archbox/bin/init stop
|
$PRIV $PREFIX/share/archbox/bin/init stop
|
||||||
;;
|
;;
|
||||||
--remount-run)
|
--remount-run)
|
||||||
storeenv
|
|
||||||
$PRIV $PREFIX/share/archbox/bin/uth remountrun
|
$PRIV $PREFIX/share/archbox/bin/uth remountrun
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
--mount-runtime-only)
|
--mount-runtime-only)
|
||||||
storeenv
|
|
||||||
$PRIV $PREFIX/share/archbox/bin/uth runtimeonly
|
$PRIV $PREFIX/share/archbox/bin/uth runtimeonly
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user