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.
This commit is contained in:
parent
801e99b087
commit
8c68a3c5d5
4
features.in/build-vm/image-scripts.d/50-fstab
Executable file
4
features.in/build-vm/image-scripts.d/50-fstab
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/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
|
endif
|
||||||
@$(call xport,VM_INITRDMODULES)
|
@$(call xport,VM_INITRDMODULES)
|
||||||
@$(call xport,VM_INITRDFEATURES)
|
@$(call xport,VM_INITRDFEATURES)
|
||||||
|
@$(call xport,VM_FSTYPE)
|
||||||
|
@ -16,4 +16,3 @@ done
|
|||||||
for KVER in $kver; do
|
for KVER in $kver; do
|
||||||
/sbin/installkernel --uboot --keep-initrd "$KVER"
|
/sbin/installkernel --uboot --keep-initrd "$KVER"
|
||||||
done
|
done
|
||||||
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab
|
|
||||||
|
Loading…
Reference in New Issue
Block a user