Re: what is initramfs-0-rescue in F19?
Am 09.04.2013 00:00, schrieb Jeffrey Bastian: On Mon, Apr 08, 2013 at 04:03:47PM -0500, Jeffrey Bastian wrote: I removed my initramfs-0-rescue-* file because I didn't know what it was and no rpm claimed to own it. How do I get it back? I've tried running dracut with various options and it doesn't regenerate the image. Attempting to answer my own question... I'm not sure if this is the correct way, but I tried running this: /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) \ /boot/initramfs-$(uname -r)* And now I have rescue files again: # ls -latr /boot/*0-rescue* -rw---. 1 root root 27496022 Apr 8 16:46 /boot/initramfs-0-rescue-...img -rw---. 1 root root 7860871 Apr 8 16:46 /boot/vmlinuz-0-rescue-... Is dracut supposed to run the /etc/kernel/postinst.d/* scripts automatically? I ran dracut through 'bash -x' and strace and it didn't appear to even look in /etc/kernel/postinst.d The reason I removed the file in the first place is because grub2-mkconfig generates a not-very-descriptive entry in the menu. My grub.cfg now has this: menuentry 'Fedora, with Linux 0-rescue-344...c20' ... { Furthermore, my system is set up to dual boot between Fedora 17 and 19 Alpha, and now grub2-mkconfig has set this rescue image as the default kernel for F17. menuentry 'Fedora release 17 (Beefy Miracle)' ... { ... linux /vmlinuz-0-rescue-344... } That seems a little strange to me. Jeff /etc/kernel/postinst.d/* scripts are called by new-kernel-pkg, which is called in the kernel.spec, when you install a kernel. new-kernel-pkg uses grubby to generate a grub config. grub2-mkconfig destroys anything grubby has setup. Well, we could patch grub2-mkconfig to recognize the rescue image, but we should better concentrate to make grub2-mkconfig obsolete and integrate the bootloader spec. http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
/etc/kernel/postinst.d/* scripts are called by new-kernel-pkg, which is called in the kernel.spec, when you install a kernel. new-kernel-pkg uses grubby to generate a grub config. grub2-mkconfig destroys anything grubby has setup. Well, we could patch grub2-mkconfig to recognize the rescue image, but we should better concentrate to make grub2-mkconfig obsolete and integrate the bootloader spec. http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec grub2-mkconfig should be patched, too. Implementing the BooLoaderSpec just might encounter problems in practice, like every other attempt for the past 20 years to create a grand unified boot loader that correctly understands all existing OS and hardware configurations. -- -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 07.04.2013 17:03, schrieb Reindl Harald: ok, with dracut-nohostonly installed you become /usr/lib/dracut/dracut.conf.d/02-nohostonly.conf which is overriden by the since a long time existing /etc/dracut.conf.d/91-host-only.conf to have the same behavior as before and nobody thinks that tjis is a little pervert? [root@rawhide boot]# cat /usr/lib/dracut/dracut.conf.d/02-nohostonly.conf hostonly=no [root@rawhide boot]# cat /etc/dracut.conf.d/91-host-only.conf hostonly=yes works as intended, with the exception that I meant you to install dracut-norescue... My fault. Am 07.04.2013 15:06, schrieb Harald Hoyer: install dracut-nohostonly if you don't want that... see the Release Notes of http://fedoraproject.org/wiki/Features/DracutHostOnly On Sun, Apr 7, 2013 at 12:37 AM, Reindl Harald h.rei...@thelounge.net wrote: -rw--- 1 root root 18M 22. Mär 17:06 initramfs-0-rescue-74e76163c28448fba68b8667eb7b5d92.img -rw--- 1 root root 5,2M 7. Apr 00:34 initramfs-3.9.0-0.rc5.git1.301.fc19.x86_64.img is this the result of http://fedoraproject.org/wiki/Features/DracutHostOnly wasting space on virtual machines using hostonly since forever? [root@rawhide dracut.conf.d]# cat 91-host-only.conf hostonly=yes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRYmWFAAoJEANOs3ABTfJwpx8P/0+41QSRsXRqyWoQWXAHMC6J ldVtrDqPvyNrdSJgRD4kWxwmGT9h4ASFDed5NfcZa1DOudBFr6idvfJWnLb2T4+I 2RkU5jlXJt7kpNxjwh1ruRv8Z751Rneu+z9z62S0DYxZxBPIWAhO6EP9Ppu647Ck MwDphpq9RD3oDOcS6xIDi+yGbBPn0ajP9cTOp7tJloEruWNb9pGhttdyuFHmOakA 0rIyPcVdb5ikbSibduoQ0ttoSeXlx4Vd+SEZC5ciEhPejJVZW5dyXgptfxWIwwWS uecool1Y0pHKXOTJxumWK6rbgzBNDreNhH80q8ae3QvCjCSuezNap0gk9OVD5mUx ou9M3BqW3MlmRwib1uMFPMVyo3IB+mXtsYIrJw8WWbE3/leax5c3rAhyoMLQtKRa HwWmKVw3HLuBtwUoIP0af2x9/t8BnfTZOJ8uDbt+FSX0QR7QdYSQ+s21xypyz+fP Xf9MR3F4Kdzw4sylUlv0z+OWAL4boKAymO9E9VjusDMDhgm8tQHpXbjCeHzURE79 nDiUuyP1EUBlipO7mVWyDX8vhA+J/oW6Jg1JU/Nv+otetQd+ABadAEYM8wHQeE+y 7xsRNGfRQ6SdAPOlBisFR6FbR0bW1i+ikgjY9ZXa6UYVGhPSeQdI0SPxxWcgahtm q5zS0Plygzr5rdUGwbSB =BqHz -END PGP SIGNATURE- -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
On Sun, Apr 07, 2013 at 03:06:51PM +0200, Harald Hoyer wrote: install dracut-nohostonly if you don't want that... see the Release Notes of http://fedoraproject.org/wiki/Features/DracutHostOnly I removed my initramfs-0-rescue-* file because I didn't know what it was and no rpm claimed to own it. How do I get it back? I've tried running dracut with various options and it doesn't regenerate the image. Jeff -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
On Mon, Apr 08, 2013 at 04:03:47PM -0500, Jeffrey Bastian wrote: I removed my initramfs-0-rescue-* file because I didn't know what it was and no rpm claimed to own it. How do I get it back? I've tried running dracut with various options and it doesn't regenerate the image. Attempting to answer my own question... I'm not sure if this is the correct way, but I tried running this: /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) \ /boot/initramfs-$(uname -r)* And now I have rescue files again: # ls -latr /boot/*0-rescue* -rw---. 1 root root 27496022 Apr 8 16:46 /boot/initramfs-0-rescue-...img -rw---. 1 root root 7860871 Apr 8 16:46 /boot/vmlinuz-0-rescue-... Is dracut supposed to run the /etc/kernel/postinst.d/* scripts automatically? I ran dracut through 'bash -x' and strace and it didn't appear to even look in /etc/kernel/postinst.d The reason I removed the file in the first place is because grub2-mkconfig generates a not-very-descriptive entry in the menu. My grub.cfg now has this: menuentry 'Fedora, with Linux 0-rescue-344...c20' ... { Furthermore, my system is set up to dual boot between Fedora 17 and 19 Alpha, and now grub2-mkconfig has set this rescue image as the default kernel for F17. menuentry 'Fedora release 17 (Beefy Miracle)' ... { ... linux /vmlinuz-0-rescue-344... } That seems a little strange to me. Jeff -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
install dracut-nohostonly if you don't want that... see the Release Notes of http://fedoraproject.org/wiki/Features/DracutHostOnly On Sun, Apr 7, 2013 at 12:37 AM, Reindl Harald h.rei...@thelounge.net wrote: -rw--- 1 root root 18M 22. Mär 17:06 initramfs-0-rescue-74e76163c28448fba68b8667eb7b5d92.img -rw--- 1 root root 5,2M 7. Apr 00:34 initramfs-3.9.0-0.rc5.git1.301.fc19.x86_64.img is this the result of http://fedoraproject.org/wiki/Features/DracutHostOnly wasting space on virtual machines using hostonly since forever? [root@rawhide dracut.conf.d]# cat 91-host-only.conf hostonly=yes -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
from my poing of veiw this is a huge step backwards all of that what the feature provides was possible long ago in a more predictable way Am 07.04.2013 15:06, schrieb Harald Hoyer: install dracut-nohostonly if you don't want that... see the Release Notes of http://fedoraproject.org/wiki/Features/DracutHostOnly On Sun, Apr 7, 2013 at 12:37 AM, Reindl Harald h.rei...@thelounge.net wrote: -rw--- 1 root root 18M 22. Mär 17:06 initramfs-0-rescue-74e76163c28448fba68b8667eb7b5d92.img -rw--- 1 root root 5,2M 7. Apr 00:34 initramfs-3.9.0-0.rc5.git1.301.fc19.x86_64.img is this the result of http://fedoraproject.org/wiki/Features/DracutHostOnly wasting space on virtual machines using hostonly since forever? [root@rawhide dracut.conf.d]# cat 91-host-only.conf hostonly=yes signature.asc Description: OpenPGP digital signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
ok, with dracut-nohostonly installed you become /usr/lib/dracut/dracut.conf.d/02-nohostonly.conf which is overriden by the since a long time existing /etc/dracut.conf.d/91-host-only.conf to have the same behavior as before and nobody thinks that tjis is a little pervert? [root@rawhide boot]# cat /usr/lib/dracut/dracut.conf.d/02-nohostonly.conf hostonly=no [root@rawhide boot]# cat /etc/dracut.conf.d/91-host-only.conf hostonly=yes Am 07.04.2013 15:06, schrieb Harald Hoyer: install dracut-nohostonly if you don't want that... see the Release Notes of http://fedoraproject.org/wiki/Features/DracutHostOnly On Sun, Apr 7, 2013 at 12:37 AM, Reindl Harald h.rei...@thelounge.net wrote: -rw--- 1 root root 18M 22. Mär 17:06 initramfs-0-rescue-74e76163c28448fba68b8667eb7b5d92.img -rw--- 1 root root 5,2M 7. Apr 00:34 initramfs-3.9.0-0.rc5.git1.301.fc19.x86_64.img is this the result of http://fedoraproject.org/wiki/Features/DracutHostOnly wasting space on virtual machines using hostonly since forever? [root@rawhide dracut.conf.d]# cat 91-host-only.conf hostonly=yes signature.asc Description: OpenPGP digital signature -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: what is initramfs-0-rescue in F19?
Oops.. I meant dracut-norescue of course Am 07.04.2013 15:06 schrieb Harald Hoyer harald.ho...@gmail.com: install dracut-nohostonly if you don't want that... see the Release Notes of http://fedoraproject.org/wiki/Features/DracutHostOnly On Sun, Apr 7, 2013 at 12:37 AM, Reindl Harald h.rei...@thelounge.net wrote: -rw--- 1 root root 18M 22. Mär 17:06 initramfs-0-rescue-74e76163c28448fba68b8667eb7b5d92.img -rw--- 1 root root 5,2M 7. Apr 00:34 initramfs-3.9.0-0.rc5.git1.301.fc19.x86_64.img is this the result of http://fedoraproject.org/wiki/Features/DracutHostOnly wasting space on virtual machines using hostonly since forever? [root@rawhide dracut.conf.d]# cat 91-host-only.conf hostonly=yes -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel