On 5/15/20 9:56 PM, Javier via artix-general wrote:
> Hi !
>
> Not sure is only a S6 issue or not, neither if only when the whole disk where the root volume resides is encrypted through luks, but even though my /etc/fstab includes:
>
> /dev/lm-4/root / ext4 discard,commit=60 0 1
>
> or:
>
> /dev/mapper/lm--4-root / ext4 discard,commit=60 0 1
>
> My artix box mounts it, according to /etc/mtab, as:
>
> /dev/mapper/lm--4-root / ext4 rw,relatime 0 0
>
> Notice how the fstab options are missing, :(. I was trusting artix would mount the root directory with the options I provided on fstab, but it's not doing so. The rw,relatime were totally expected though, since those are included by default, unless the fstab entry included non compatible options, which is not the case.
>
> On a similar arch box, having the fstab entry:
>
> /dev/m1/root / ext4 discard,commit=60 0 1
>
> Makes the root directory mounted, according to /etc/mtab, as:
>
> /dev/mapper/m1-root / ext4 rw,relatime,discard,commit=60 0 0
>
> So arch is actually paying attention to /etc/fstab root directory mount entry, whereas artix is not... I was expecting the arch behavior...
>
> Other mount points like /boot and others are actually getting mounted on artix with the options from /etc/fstab, it's the root directory mount point which doesn't.
>
> How can this be fixed? I'm really counting on those settings to apply.
>
> Thanks !
BTW, I used the workaround for xfs root partitions [1], and for non root mount point on /etc/fstab [2], having "rootflags=discard,commit=60" as part of GRUB_CMDLINE_LINUX in /etc/default/grub, and also regenerating /boot/grub/grub.cfg and rebooting. So now, after rebooting /etc/mtab shows:
/dev/mapper/lm--4-root / ext4 rw,relatime,discard,commit=60 0 0
However there's still another problem, but apparently it's also present in arch... I was expecting the <pass> mount option to be 1, so that a check on the FS is performed, and with the highest priority (1), but instead it's 0 (no check at all). This might have changed since systemd showed up, but systemd is out of the picture now....
AFAIK this shouldn't be necessary for ext4, since the options should be overwritten from /etc/fstab if its / entry exists, which is my case. Moreover, in the xfs case, the only thing apparently ignored is the "discard" option, whereas in my case the commit option is also ignored.
How can I remove the "rootflags" workaround, and instead make artix overwrite the options with the /etc/fstab root directory mount entry? Also, how to make the <pass> mount option effective, meaning how to force the check on mounting if /etc/fstab indicates so (including the root directory mount FS of course, and others).
Thanks !
--
Javier
[1] https://bbs.archlinux.org/viewtopic.php?id=143254
[2] https://bbs.archlinux.org/viewtopic.php?id=242116
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20200515/676fd3c5/attachment.sig>
More information about the artix-general
mailing list