mkimage-profiles/features.in/build-vm/image-scripts.d/16-fstab
Anton Midyukov 439fe29841 build-vm, mipsel-{bfk3,mitx}: Execute fstab scripts before 17-kernel
This is necessary for the 'rootfs' initrd feature to work properly
2021-02-14 23:22:56 +07:00

5 lines
135 B
Bash
Executable File

#!/bin/sh
grep -qe "[[:space:]]/[[:space:]]" /etc/fstab ||
printf "LABEL=ROOT\t/\t$GLOBAL_VM_FSTYPE\tdefaults\t1 1\n" >> /etc/fstab