[arch-dev-public] [RFC] Initialize /etc/mtab by copying /proc/mounts

Thomas Bächler thomas at archlinux.org
Wed Jun 9 03:47:20 EDT 2010

Am 09.06.2010 03:40, schrieb Dan McGee:
> On Tue, Jun 8, 2010 at 5:48 PM, Thomas Bächler <thomas at archlinux.org> wrote:
>> Our current process of initializing /etc/mtab is
>> hackish and probably error-prone, replace it by
>> simply copying /proc/mounts.
>> ---
> Looks good to me (but untested). This goes way back to the roots of Arch, wow.

The only weirdness that I found is that "rootfs" is now shown as a mount:
rootfs / rootfs rw 0 0

Technically this is correct, but some tools might become confused.
Another way would be to grep -v ^rootfs from /proc/mounts when creating
mtab. I am entirely unsure what the "right way" is here.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20100609/8209af07/attachment.bin>

More information about the arch-dev-public mailing list