Boots into initramfs then switch_root
This commit is contained in:
16
alpine/rootfs-extra/etc/init.d/root.override
Executable file
16
alpine/rootfs-extra/etc/init.d/root.override
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Keep root filesystem read-only for immutable boot"
|
||||
|
||||
depend()
|
||||
{
|
||||
after clock
|
||||
need fsck
|
||||
keyword -docker -podman -jail -lxc -openvz -prefix -systemd-nspawn -vserver -wsl
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "Keeping root filesystem read-only"
|
||||
eend 0
|
||||
}
|
||||
Reference in New Issue
Block a user