FS#11112 - After execute /etc/start_udev the mount command only shows /dev/shm and /dev/pts as mounted
Attached to Project:
Arch Linux
Opened by Pepe (kerer) - Monday, 04 August 2008, 12:49 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 20 November 2008, 20:40 GMT
Opened by Pepe (kerer) - Monday, 04 August 2008, 12:49 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 20 November 2008, 20:40 GMT
|
Details
Description:
If /etc/start_udev is executed and udev is running the command mount doesn't show the right information after the command has finished, only /dev/pts and /dev/shm are showed as mounted. I think that happens because the file /etc/mtab is overwritten when the following line is executed: grep -v "/dev/shm" /etc/mtab | grep -v "/dev/pts" > /etc/mtab That causes the file /etc/mtab to be completely deleted instead of being filled with the right information and that entails the command df not showing the mounted devices. Additional info: udev 119-1 Steps to reproduce: Execute /etc/start_udev |
This task depends upon
Closed by Aaron Griffin (phrakture)
Thursday, 20 November 2008, 20:40 GMT
Reason for closing: Not a bug
Additional comments about closing: start_udev is dead
Thursday, 20 November 2008, 20:40 GMT
Reason for closing: Not a bug
Additional comments about closing: start_udev is dead
$ echo "pts" > test.txt
$ echo "shm" >> test.txt
$ echo "bla" >> test.txt
$ grep -v 'pts' test.txt | grep -v 'shm' > test.txt
$ cat test.txt
$
The redirect should be done to a temporary file and then moved to /etc/mtab.
start_udev is a shitty script that someone took verbatim from gentoo, and pretty much never touched again. It's crap and we should remove it.
I for one am fine with it if people still haven't upgraded initscripts (my email tells me this happened near the end of Feb), then they deserve some breakage
More seriously, you already suggested this back in February :
http://www.archlinux.org/pipermail/arch-dev-public/2008-February/004899.html
And it already received a +1 from me :
http://www.archlinux.org/pipermail/arch-dev-public/2008-February/004930.html
# older initscripts versions required start_udev
conflicts=('initscripts<2008.02')