Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66225 - parameter order for mount in checkroot.sh violates POSIX
Summary: parameter order for mount in checkroot.sh violates POSIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-03 10:57 UTC by Alexander Schreiber
Modified: 2004-10-03 21:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Schreiber 2004-10-03 10:57:07 UTC
As part of the system startup, the script /etc/init.d/checkroot.sh remounts the root filesystem read-write. To do this it uses the command
"mount / -n -o remount,rw &>/dev/null"
(The remount statement to remount the root fs read-only is broken in the same way.)
The order of the arguments to mount are in the wrong order: POSIX and Single Unix Specification explicitly require options to be written before all other command line arguments. The correct statement would be:
"mount -n -o remount,rw / &>/dev/null"
While this might seem cosmetic, it might cause breakage when linking mount against a libc that strictly follows POSIX. It is also trivial to fix ;-)
Comment 1 SpanKY gentoo-dev 2004-10-03 21:36:36 UTC
fixed in cvs, thanks