{"head":"44b280956cc3f219de8caaef83df78bfe97867f3","size":4,"push_id":45604209,"shas":[["42610beb5a317d63dc76dabb72a9061a799b280b","7c8224529a7c718e876cb2496c973509fde1e50e@jklm.no","shutdown: add a shutdown hook\n\nThis hook keeps the initramfs in /run/initramfs after boot, and\nadds /run/initramfs/shutdown.\n\nEnabling the shutdown hook and using systemd, or initscripts from\ngit, means that on shutdown the root will be pivoted to /run/initramfs,\nfrom where the rootfs and all its submonuts (such as /usr, or mounts\nthat have tmpfs mounts as submounts) are unmounted cleanly.\n\nA natural next step is to add an \"/usr\"-hook, which mounts the /usr\npartition (if it exists) in the initramfs, so initscripts (and systemd)\ncan always rely on it being mounted, and we no longer need to move some\nbinaries/libraries to /bin, /sbin and /lib (as this does not work well\nat the moment). The next initscripts release will warn if /usr is empty\non boot (i.e., it has not been mounted by the initramfs).\n\nOne might argue that this functionality does not beling in mkinitrd.\nThe reason I propose it for inclusion here is:\n- it is independent of initscripts, so does not really belong there either.\n- in the future one might imagine extending this to integrate more tightly\n  with the rest of the initramfs (e.g. store state/logs in /run/initramfs\n  to ease debugging, or add shutdown-hooks, to go with the boot-hooks, to\n  gracefully tear down things such as dm or nfs mounts at shutdown).\n- by behaving like dracut, integrating with systemd became trivial, and IMHO\n  there is no point in systemd/initscripts/dracut/mkinitrd differing at the\n  interface level.\n- the shutdown ramfs has much of the same requirements as the initramfs, so\n  reusing the code makes sense.\n\nWe rely on busybox being patched to add support for \"cp -x\". The patch has been\nwritten by Thomas, but to the best of my knowledge not been applied upstream yet.\n\nSigned-off-by: Tom Gundersen <teg@jklm.no>","Tom Gundersen"],["76dacf8b9de9cc0409741840b1d8e449862fc846","7c8224529a7c718e876cb2496c973509fde1e50e@jklm.no","hooks: add usr hook\n\nThis allows /usr to be mounted from within the initrd. Advanced setups\nmight not work. It is recommended to move /usr to the rootfs.\n\nSigned-off-by: Tom Gundersen <teg@jklm.no>","Tom Gundersen"],["5f4b6ad0913037f40be4609aa01d7a795e82c3e0","7c8224529a7c718e876cb2496c973509fde1e50e@jklm.no","install/base: include usb modprobe file from /etc if it exists\n\nWe include the file from /etc in the unlikely event that the user has overriden the /lib config file.\n\nSigned-off-by: Tom Gundersen <teg@jklm.no>","Tom Gundersen"],["44b280956cc3f219de8caaef83df78bfe97867f3","7c8224529a7c718e876cb2496c973509fde1e50e@jklm.no","\"ide: add deprecation warning\\n\\nCurrent udev does not work well with the IDE subsystem, so we should encourage users to move to the ATA subsystem instead (using the pata hook).\\n\\nWe should probably get rid of the IDE subsystem from the kernel altogether at some point (so people don't end up using it by accedint). Dan successfully debugged and fixed the only blocker that I'm aware of <https://bugzilla.kernel.org/show_bug.cgi?id=41582>, but there might of course be others.\\n\\nIf the ide subsystem is dropped from the kernel before the next mkinitcpio release this patch does not make any sense and should be ignored.\\n\\nSigned-off-by: Tom Gundersen <teg@jklm.no>\\nCc: Dan McGee <dpmcgee@gmail.com>\\nCc: Thomas Bchler <thomas@archlinux.org>\\nCc: Tobias Powalowski <tpowa@archlinux.org>\"","Tom Gundersen"]],"ref":"refs/heads/master"}