mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
In 45efa94 we introduced new mount options for the: 'aux', 'cfg', and
'var' partitions. To save boot time, we also disabled the periodic fsck
check, which does not affect journal replay or other Ext4 safety or
integrity checks. The latter involved calling tune2fs at runtime, but
this caused the following to appear for the 'aux' partition, which is a
reduced ext4 for systems that need to change U-Boot settings, e.g., to
set MAC address on systems without a VPD.
EXT4-fs: Mount option(s) incompatible with ext2
Note, this is a "bogus" warning, setting the fstypt to ext2 in fstab is
not the way around this one. That's been tried.
To make matters worse, the new mount option(s), e.g., 'commit=30', gave
us another set of warnings from the kernel. This was due to the fstype
being 'auto', so the kernel objected to options not being applicable to
every filesystem it tried before ending up with extfs:
squashfs: Unknown parameter 'commit'
vfat: Unknown parameter 'commit'
exfat: Unknown parameter 'commit'
fuseblk: Unknown parameter 'commit'
btrfs: Unknown parameter 'errors'
This commit explicitly sets cfg and var to ext4, leaving mnt as auto, we
also check before calling tune2fs that the partition/disk image is ext4.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
# Virtual filesystems
|
|
devtmpfs /dev devtmpfs defaults 0 0
|
|
mkdir#-p /dev/pts helper none 0 0
|
|
devpts /dev/pts devpts mode=620,ptmxmode=0666 0 0
|
|
mkdir#-p /dev/shm helper none 0 0
|
|
tmpfs /dev/shm tmpfs mode=0777 0 0
|
|
proc /proc proc defaults 0 0
|
|
tmpfs /tmp tmpfs mode=1777,nosuid,nodev 0 0
|
|
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
|
|
tmpfs /media tmpfs mode=1755,nosuid,nodev 0 0
|
|
sysfs /sys sysfs defaults 0 0
|
|
debugfs /sys/kernel/debug debugfs nofail 0 0
|
|
cfgfs /config configfs nofail,noauto 0 0
|
|
|
|
# The chosen backing storage for the overlays placed on /cfg, /etc,
|
|
# /home, /root, and /var, are determined dynamically by /usr/libexec/infix/mnt
|
|
# depending on the available devices.
|
|
mnttmp /mnt/tmp tmpfs defaults 0 0
|
|
LABEL=aux /mnt/aux auto noatime,nodiratime,noauto,errors=remount-ro 0 0
|
|
LABEL=var /mnt/var ext4 noatime,nodiratime,noauto,commit=30,errors=remount-ro 0 0
|
|
LABEL=cfg /mnt/cfg ext4 noatime,nodiratime,noauto,commit=30,errors=remount-ro 0 0
|
|
hostfs /mnt/host 9p cache=none,msize=16384,noauto 0 0
|
|
/usr/libexec/infix/mnt# /cfg helper none 0 0
|