Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30042 - [mkinitcpio] new usr hook

Attached to Project: Arch Linux
Opened by Clemens Buchacher (drizzd) - Monday, 28 May 2012, 10:44 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 02 June 2012, 22:49 GMT
Task Type General Gripe
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I just upgraded to 0.9.0. Here is what various sources have to say on the 'usr' hook.

- mkinitcpio.install's post_upgrade

If your /usr is on a separate partition, you must add the "usr" hook
to /etc/mkinitcpio.conf and regenerate your images before rebooting

- /etc/mkinitcpio.conf

NOTE: If you have /usr on a separate partition, you MUST include the
fsck and shutdown hooks.

- https://wiki.archlinux.org/index.php/Mkinitcpio#.2Fusr_as_a_separate_partition

Add the shutdown hook.
Add the fsck hook.
As of mkinitcpio 0.9.0: Add the usr hook.

First I read the post_upgrade output and then mkinitcpio.conf. I thought that mkinitcpio.conf is most likely outdated, and the usr hook _supersedes_ the need for the fsck and shutdown hooks. The wiki entry can also be interpreted that way. But from reading the source it seems that the usr hook is needed in _addition_ to the shutdown and fsck hooks.

I think this should be more clearly stated in all three places above.
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 02 June 2012, 22:49 GMT
Reason for closing:  Implemented
Additional comments about closing:  testing/mkinitcpio-0.9.1
Comment by Dave Reisner (falconindy) - Monday, 28 May 2012, 17:54 GMT
If the wiki is unclear, change it.

I precisely stated what needed to be done in the post_upgrade message -- add. Not change. Not remove. Not modify. Simply _add_.
Comment by Clemens Buchacher (drizzd) - Monday, 28 May 2012, 19:05 GMT
I already fixed the wiki, of course. But I also wanted to confirm that I am indeed correct and not changing it for the worse. Since mkinitcpio.conf mentions fsck und shutdown, it should clearly mention usr too. As it is, it is inconsistent and therefore confusing.
Comment by Dave Reisner (falconindy) - Monday, 28 May 2012, 19:06 GMT
That I'll fix. Sorry, skipped over that in the initial report.
Comment by Dave Reisner (falconindy) - Friday, 01 June 2012, 13:50 GMT
Committed to master: http://projects.archlinux.org/mkinitcpio.git/commit/?id=01b4ec4fef66

I'll leave this open until I get around to doing a release this weekend.

Loading...