#724695 brltty: initramfs hook copies /proc/mounts to /etc/mtab

Package:
brltty
Source:
brltty
Description:
Access software for a blind person using a braille display
Submitter:
Michael Prokop
Date:
2013-11-17 22:30:04 UTC
Severity:
important
#724695#5
Date:
2013-09-26 18:30:31 UTC
From:
To:
In debian/initramfs/scripts/init-premount/brltty there's:

  cp /proc/mounts /etc/mtab

This is wrong, /etc/mtab is supposed to be a symlink to
/proc/mounts. Please remove this line.

regards,
-mika-

#724695#10
Date:
2013-11-09 20:20:05 UTC
From:
To:
Hello,

At last I get some time to dig more about it.

Michael Prokop, le Thu 26 Sep 2013 20:30:31 +0200, a écrit :

Well, it is not in my test (adding break=mount to the kernel command
line). Maybe your setup is different?

Samuel

#724695#17
Date:
2013-11-15 12:37:13 UTC
From:
To:
* Samuel Thibault [Sat Nov 09, 2013 at 09:20:05PM +0100]:

/etc/mtab is pointing to /proc/mounts in the real system (after
booting initrd finished), it shouldn't be a normal file inside the
initrd either.

regards,
-mika-

#724695#22
Date:
2013-11-15 12:50:18 UTC
From:
To:
Michael Prokop, le Fri 15 Nov 2013 13:37:13 +0100, a écrit :

Ok, then which package is supposed to build that symlink, so we can add
the symlink there and remove the copy in brltty?

Samuel

#724695#27
Date:
2013-11-15 13:07:28 UTC
From:
To:
* Samuel Thibault [Fri Nov 15, 2013 at 01:50:18PM +0100]:

/etc/init.d/checkroot.sh of package initscripts creates the symlink,
the code that does that is inside /lib/init/mount-functions.sh
(function mtab_migrate).

regards,
-mika-

#724695#32
Date:
2013-11-17 22:11:22 UTC
From:
To:
Michael Prokop, le Fri 15 Nov 2013 14:07:28 +0100, a écrit :

Err, aren't these scripts in the installed root, not in the initramfs?

initscripts doesn't currently introduce scripts in initramfs.  Do we
really want to make that package build the symlink, not another one?
(particularly since switching from sysvinit to something else is being
considered).

Samuel