carbon-s6-rc

Source directory for s6-rc database on Carbon
git clone https://ccx.te2000.cz/git/carbon-s6-rc
Log | Files | Refs

commit 8cfbd515c082f075d7cfac70d10f3ee512cbf1a6
parent a2ab4898be12851b31bfd7dd5661f226103452fa
Author: ccx <root@dorje.wpr.cz>
Date:   Thu,  4 Mar 2021 15:20:15 +0100

localmount and root-writable (no fsck yet)

Diffstat:
Alocalmount/dependencies | 3+++
Alocalmount/down | 4++++
Alocalmount/type | 1+
Alocalmount/up | 1+
Mok-mount/contents | 3++-
Mopenrc/dependencies | 1+
Aroot-writable/down | 1+
Aroot-writable/type | 1+
Aroot-writable/up | 1+
9 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/localmount/dependencies b/localmount/dependencies @@ -0,0 +1,3 @@ +ok-sysinit +modules +root-writable diff --git a/localmount/down b/localmount/down @@ -0,0 +1,4 @@ +# umount all filesystems except specials, if possible +foreground { umount --all --verbose --detach-loop -t nodevtmpfs,noproc,nosysfs,nodevpts } +# remount the rest read-only, except for tmpfs +foreground { umount --all --read-only --verbose -t nodevtmpfs,noproc,nosysfs,nodevpts,notmpfs } diff --git a/localmount/type b/localmount/type @@ -0,0 +1 @@ +oneshot diff --git a/localmount/up b/localmount/up @@ -0,0 +1 @@ +mount -at noproc -O no_netdev diff --git a/ok-mount/contents b/ok-mount/contents @@ -1,2 +1,3 @@ ok-sysinit -openrc +localmount +root-writable diff --git a/openrc/dependencies b/openrc/dependencies @@ -1,3 +1,4 @@ ok-sysinit +ok-mount modules udev diff --git a/root-writable/down b/root-writable/down @@ -0,0 +1 @@ +foreground { mount -o remount,ro / } diff --git a/root-writable/type b/root-writable/type @@ -0,0 +1 @@ +oneshot diff --git a/root-writable/up b/root-writable/up @@ -0,0 +1 @@ +mount -o remount,rw /