mkimage-profiles/features.in/build-vm/image-scripts.d/50-fstab
Anton Midyukov 8c68a3c5d5 build-vm, kernel, uboot: setup /etc/fstab for build-vm
The entry in /etc/fstab about the mount parameters of the root
partition needs to be done not only for builds with u-boot.
But, if the record already exists, then it will not be added.
The file system type is set by the variable VM_FSTYPE.
2020-04-07 22:35:52 +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