* Kickstart file to customize rootfs mount opts not modifying fstab as expected
@ 2018-03-14 12:16 Iván Castell
2018-03-15 12:22 ` Iván Castell
0 siblings, 1 reply; 2+ messages in thread
From: Iván Castell @ 2018-03-14 12:16 UTC (permalink / raw)
To: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]
Hello forum.
I want to customize my rootfs partition to be mounted with the
"data=journal" option enabled.
To do that I have modified my layer adding a custom mkefidisk.wks script
with this contents for the rootfs partition:
part / --source rootfs --ondisk sda --fstype=ext4
--fsoptions="data=journal" --label platform --use-uuid --size 80000 --align
1024
According to yocto reference manual:
https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html
The --fsoptions option specifies a free-form string of options to be used
when mounting the filesystem. This string will be copied into the
/etc/fstab file of the installed system and should be enclosed in quotes.
If not specified, the default string is "defaults".
I expected to find a /etc/fstab with "data=journal" on the mounted rootfs.
However, after mounting .ext4 image, this is the /etc/fstab content for the
rootfs partition:
/dev/root / auto defaults
1 1
As you can see, it doesn't contain any reference to "data=journal".
What is wrong with that?
Thanks in advance.
Regards,
-- Ivan
[-- Attachment #2: Type: text/html, Size: 1755 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Kickstart file to customize rootfs mount opts not modifying fstab as expected
2018-03-14 12:16 Kickstart file to customize rootfs mount opts not modifying fstab as expected Iván Castell
@ 2018-03-15 12:22 ` Iván Castell
0 siblings, 0 replies; 2+ messages in thread
From: Iván Castell @ 2018-03-15 12:22 UTC (permalink / raw)
To: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 640 bytes --]
After some googling I fixed my issue customizing mkefidisk.wks script, adding
"rootflags=data=journal" to the line related with the bootloader:
bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4
console=ttyS0,115200 console=tty0 rootflags=data=journal noapic"
Now my rootfs is mounted with "journal" flag enabled:
# mount | grep sda
/dev/sda3 on / type ext4 (rw,relatime,nodelalloc,data=journal)
I don't know if this is the most proper way to manage this issue, but at
least it works now.
If some of you knows a better way to manage this, please let me know about
it.
Thank you in advance! :)
[-- Attachment #2: Type: text/html, Size: 1293 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-15 12:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14 12:16 Kickstart file to customize rootfs mount opts not modifying fstab as expected Iván Castell
2018-03-15 12:22 ` Iván Castell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.