Add fstab override for VM to mount /boot.
This commit is contained in:
parent
9a1874d072
commit
8e7a779237
6
zlibs/vm
6
zlibs/vm
|
|
@ -23,11 +23,15 @@ vars+=(vmname)
|
||||||
vm_inject_overrides()
|
vm_inject_overrides()
|
||||||
{
|
{
|
||||||
fn vm_inject_overrides
|
fn vm_inject_overrides
|
||||||
req=(strapdir)
|
req=(strapdir bootfs)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
notice "Injecting rootfs overrides"
|
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
|
cat <<EOF | sudo tee "$strapdir/etc/rc.local" >/dev/null
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# rc.local for base images
|
# rc.local for base images
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue