libdevuansdk

common library for devuan's simple distro kits
git clone https://git.parazyd.org/libdevuansdk
Log | Files | Refs | Submodules | README | LICENSE

commit 8e7a779237a55bbedf4b28c0980ff0ca2464fc8a
parent 9a1874d072468eba55746aae926bbee235652da1
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 13 Nov 2020 11:26:10 +0100

Add fstab override for VM to mount /boot.

Diffstat:
Mzlibs/vm | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/zlibs/vm b/zlibs/vm @@ -23,11 +23,15 @@ vars+=(vmname) vm_inject_overrides() { fn vm_inject_overrides - req=(strapdir) + req=(strapdir bootfs) ckreq || return 1 notice "Injecting rootfs overrides" + cat <<EOF | sudo tee -a "$strapdir/etc/fstab" >/dev/null +/dev/sda1 /boot ${bootfs} defaults 0 1 +EOF + cat <<EOF | sudo tee "$strapdir/etc/rc.local" >/dev/null #!/bin/sh # rc.local for base images