Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560060 - mtab deprecation warning is misleading
Summary: mtab deprecation warning is misleading
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2015-09-09 17:42 UTC by Richard Yao (RETIRED)
Modified: 2015-10-07 16:45 UTC (History)
1 user (show)

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


Attachments
Patch to make deprecation message more accurate (patch,713 bytes, patch)
2015-09-09 17:42 UTC, Richard Yao (RETIRED)
Details | Diff
New patch to make deprecation message more accurate (patch,1.09 KB, patch)
2015-10-07 14:03 UTC, Richard Yao (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2015-09-09 17:42:10 UTC
Created attachment 411438 [details, diff]
Patch to make deprecation message more accurate

The deprecation message is highly misleading to those who understand who /etc/mtab is implemented. /etc/mtab is from UNIX System V where the RC scripts reset it during early boot and mount/umount manage the addition/removal of entries by calling into libc for addition and sometimes calling into libc for removal depending on the platform.

To anyone who knows this, the message suggests that sys-libs/glibc and sys-apps/util-linux are going to drop support for /etc/mtab as a file, which is untrue. I have attached a patch that more accurately reflects things.
Comment 1 Greg Kubaryk 2015-09-10 01:15:41 UTC
The patch spells 'deprecated' and 'migrate' incorrectly.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2015-10-07 13:58:43 UTC
Comment on attachment 411438 [details, diff]
Patch to make deprecation message more accurate

I have revised the patch to fix the spelling mistakes that Greg pointed out and to be consistent with a conversation that I had with William Hubbs yesterday.
Comment 3 Richard Yao (RETIRED) gentoo-dev 2015-10-07 14:03:31 UTC
Created attachment 414008 [details, diff]
New patch to make deprecation message more accurate

I somehow failed to attach the new patch.
Comment 4 William Hubbs gentoo-dev 2015-10-07 16:45:13 UTC
The logic in the mtab script was reworked so that it favors /etc/mtab as
a symlink but updates the mtab file if it still exists.

This is commit 6fa0d63.