From ca3cb17370efe27246e3c0947e01b88ec99bd4eb Mon Sep 17 00:00:00 2001 From: Lemniskett Date: Wed, 18 Nov 2020 01:07:02 +0700 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a1f75a0..98822e9 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,24 @@ Before creating chroot enviroment, edit your username in ```/etc/archbox.conf``` sudo archbox --create ``` ### Configuring filesystem automount -Execute ```/usr/local/share/archbox/bin/archboxinit``` on boot. -either create an init service, or create a @reboot cronjob. +Execute ```/usr/local/share/archbox/bin/archboxinit start``` on boot. +If you use systemd, you can create a systemd service with this syntax below : +``` +[Unit] +Description=Archbox init +PartOf=multi-user.target + +[Service] +ExecStart=/usr/local/share/archbox/bin/archboxinit start +Type=oneshot +User=root + +[Install] +WantedBy=multi-user.target +``` +Thanks to [@SamsiFPV](https://github.com/SamsiFPV) + +If you don't use systemd, either create your own init service, or create a @reboot cronjob. ### Removing chroot enviroment **IMPORTANT**, Make sure you've unmounted everything in chroot enviroment, if you're unsure which partitions must be unmounted, remove the init script and reboot, then delete the folder. ### Entering chroot enviroment