Commit 8c68a3c5 authored by Anton Midyukov's avatar Anton Midyukov

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.
parent 801e99b0
#!/bin/sh
grep -qe "[[:space:]]/[[:space:]]" /etc/fstab ||
printf "LABEL=ROOT\t/\t$GLOBAL_VM_FSTYPE\tdefaults\t1 1\n" >> /etc/fstab
......@@ -75,3 +75,4 @@ ifeq (,$(filter-out armh,$(ARCH)))
endif
@$(call xport,VM_INITRDMODULES)
@$(call xport,VM_INITRDFEATURES)
@$(call xport,VM_FSTYPE)
......@@ -16,4 +16,3 @@ done
for KVER in $kver; do
/sbin/installkernel --uboot --keep-initrd "$KVER"
done
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment