Re: [PATCH 1/2] [99fs-lib] Create generic mount framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, 11. April 2013, 17:48:16 schrieb Harald Hoyer:
> Am 11.04.2013 17:39, schrieb Dennis Schridde:
> > * Utilises fstab.{early,late} files in /etc
> > * Provides fs_add_mount function to mount in pre-mount (early) and
> > pre-pivot (late) phases * Code to mount a fstab file is moved over from
> > 95fstab-sys
> > ---
> 
> Why not make use of fstab and fstab of the real root?
> 
> /etc/fstab in the initramfs == fstab.early
> $NEWROOT/etc/fstab == fstab.late
I want to mount depending on the cmdline arguments of the kernel.

Basically, what I need is a way to guarantee certain devices/directories to be 
mounted before dracut tries to mount the rootfs.

Also, the mountpoints are inside the initramfs, not inside the rootfs. So 
having them in the rootfs' fstab (when the mountpoints do not exist there), 
seems wrong.

For testing it was extremely helpful that I could provide these devices on the 
cmdline, because the initramfs takes quite a while to build on my machines, so 
replacing a file inside them each time I tried to get the path right would 
have been cumbersome.

> In systemd we introduced "x-initrd.mount" as a mount option, to mark those
> mount entries from $NEWROOT/etc/fstab to be mounted in pre-pivot.

I assume there is nothing (yet) that mounts entries before the rootfs gets 
mounted?

--Dennis

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux