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

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



Michael Prokop, le Fri 15 Nov 2013 14:07:28 +0100, a écrit :
> * Samuel Thibault [Fri Nov 15, 2013 at 01:50:18PM +0100]:
> > Michael Prokop, le Fri 15 Nov 2013 13:37:13 +0100, a écrit :
> > > * Samuel Thibault [Sat Nov 09, 2013 at 09:20:05PM +0100]:
> > > > Michael Prokop, le Thu 26 Sep 2013 20:30:31 +0200, a écrit :
> > > > > 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.
> 
> > > > Well, it is not in my test (adding break=mount to the kernel command
> > > > line). Maybe your setup is different?
> 
> > > /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.
> 
> > Ok, then which package is supposed to build that symlink, so we can add
> > the symlink there and remove the copy in brltty?
> 
> /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).

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


Reply to: