Difference between revisions of "Talk:Mkinitcpio"

From ArchWiki
Jump to: navigation, search
(Inquring about where to put the example for LUKS/LVM with sd-encrypt)
(Talking about LUKS/LVM with sd-encrypt example: Basics are already covered)
Line 18: Line 18:
  
 
== Talking about LUKS/LVM with sd-encrypt example ==
 
== Talking about LUKS/LVM with sd-encrypt example ==
: Formerly there was a [https://wiki.archlinux.org/index.php?title=Mkinitcpio&diff=493888&oldid=492088 link to the forum] that was ambiguous about where the UUID were generated from. [[User:enckse|enckse]] documented clearly the same use case within this page, which was reverted by [[User:Lahwaacz|Lahwaacz]]  in [https://wiki.archlinux.org/index.php?title=Mkinitcpio&diff=493938&oldid=493934 this change]. The [https://wiki.archlinux.org/index.php?title=Mkinitcpio&oldid=493938 current edit] of the page removes a reference to the forum post entirely. Where should the writeup from [[User:enckse|enckse]] be placed? - [[User:storrgie|storrgie]] 10:05, 23 October 2017 (UTC)
+
Formerly there was a [https://wiki.archlinux.org/index.php?title=Mkinitcpio&diff=493888&oldid=492088 link to the forum] that was ambiguous about where the UUID were generated from. [[User:enckse|enckse]] documented clearly the same use case within this page, which was reverted by [[User:Lahwaacz|Lahwaacz]]  in [https://wiki.archlinux.org/index.php?title=Mkinitcpio&diff=493938&oldid=493934 this change]. The [https://wiki.archlinux.org/index.php?title=Mkinitcpio&oldid=493938 current edit] of the page removes a reference to the forum post entirely. Where should the writeup from [[User:enckse|enckse]] be placed? - [[User:storrgie|storrgie]] 10:05, 23 October 2017 (UTC)
 +
: In the previous form, ie., as a tutorial, it would belong in someone's namespace. If you just want to capture the bit about determining UUIDs, then that is already documented on the [https://wiki.archlinux.org/index.php/Persistent_block_device_naming#by-uuid relevant page]. [[User:Jasonwryan|Jasonwryan]] ([[User talk:Jasonwryan|talk]]) 22:19, 23 October 2017 (UTC)

Revision as of 22:19, 23 October 2017

Talking about other hooks and a more generic view of the early userspace

I am the current maintainer of the the dropbear_initrd_encryptAUR, and, I've also developed some other mkinitcpio hooks, such as: mkinitcpio-pppAUR and mkinitcpio-ddnsAUR. I will write some wiki pages describing them, but I would also like to talk more about the early userspace. So, my question is, should I make an early userspace page, should I write a page just for the hooks? Should I write it and make it related to the mkinitcpio page? Thanks in advance.

Grazzolini (talk) 01:03, 11 February 2015 (UTC)

It depends a lot on how much content you're actually going to write. I suggest starting by expanding on the early userspace in Arch boot process; then, if what you write gets too long, we can always consider splitting the page. About custom/additional hooks you might create a section below Mkinitcpio#Common hooks, following the same principle: if the content gets too long/detailed to stay in the page, we can split it later. In any case, it's very important that you try your best to avoid duplicating existing information in other articles, and instead either add links to them, or move that information to your new content, if it fits best there, and add links to the new location from the articles where the info was removed. — Kynikos (talk) 4:32, 12 February 2015 (UTC)
Thank you for your information Kynikos. I'll be contributing these changes very soon. Grazzolini (talk) 12:54, 12 February 2015 (UTC)

Mark /usr with a passno of 2, not 0

mkinitcpio#/usr as a separate partition firmly suggests to mark /usr with a passno of 0 in /etc/fstab. The way I understand man fstab, 2 is the correct number for the task. Am I wrong? Regid (talk) 19:09, 6 April 2017 (UTC)

It also suggests adding the fsck hook to your config. Seeing as the regular fsck binaries reside on the /usr partition, this is needed to actually make it possible to fsck it at startup. The entry in /etc/fstab should thus be 0. Koneu (talk) 07:27, 7 April 2017 (UTC)
I see your point about the binaries residing on /usr. Still, with a passno of 0 you set no automatic fsck at all, don't you? Would you set passno for / to 0 when usr is an integral part of /?
Indeed the fsck hook copies fsck binaries to the initramfs, and possibly ignores passno for / and /usr at runtime. As an aside, its help text should mention usr, not just /.
Regid (talk) 10:12, 7 April 2017 (UTC)

Talking about LUKS/LVM with sd-encrypt example

Formerly there was a link to the forum that was ambiguous about where the UUID were generated from. enckse documented clearly the same use case within this page, which was reverted by Lahwaacz in this change. The current edit of the page removes a reference to the forum post entirely. Where should the writeup from enckse be placed? - storrgie 10:05, 23 October 2017 (UTC)

In the previous form, ie., as a tutorial, it would belong in someone's namespace. If you just want to capture the bit about determining UUIDs, then that is already documented on the relevant page. Jasonwryan (talk) 22:19, 23 October 2017 (UTC)