LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   F18 kernel 3.8.2 upgrade hosed boot - dracut rescue mode only (https://www.linuxquestions.org/questions/fedora-35/f18-kernel-3-8-2-upgrade-hosed-boot-dracut-rescue-mode-only-4175453823/)

PTrenholme 04-08-2013 03:02 PM

There is one additional location you should check, although it's unlikely that the settings here are the problem:
Code:

$ ls /usr/lib/dracut/dracut.conf.d
01-dist.conf

$ cat /usr/lib/dracut/dracut.conf.d/01-dist.conf
# dracut config file customized for RedHat/Fedora.

# i18n
i18n_vars="/etc/sysconfig/keyboard:KEYTABLE-KEYMAP /etc/sysconfig/i18n:SYSFONT-FONT,FONTACM-FONT_MAP,FONT_UNIMAP"
omit_drivers+=' .*/fs/ocfs/.*  i2o_scsi'
stdloglvl=3
logfile=/var/log/dracut.log
fileloglvl=6
install_items+=" vi /etc/virc ps grep cat rm "
prefix="/"
systemdutildir=/usr/lib/systemd
systemdsystemunitdir=/usr/lib/systemd/system
systemdsystemconfdir=/etc/systemd/system
udevdir=/usr/lib/udev
add_dracutmodules+=" systemd "
hostonly="yes"
dracut_rescue_image="yes"

N.B.: This is from a Fedora 19 setup, but I don't think that it's any different from the F18 file.

hpfeil 04-18-2013 10:19 AM

Thanks for the help, but /etc/dracut.conf.d has contained those files since Feb. Methinks the problem might be the POSTIN script in the kernel*rpm. It invokes /sbin/new-kernel-pkg with a now-illegal command option. It no longer likes "--package kernel". I don't know enough about rpm to figure out what happens next, but the initramfs file it creates is probably the default one. It can't even find the ext4 boot partition containing grub. With ext4.ko and lvm.ko built into the kernel, /lib/modules in the initramfs image doesn't contain those. Perhaps if /lib/modules/`uname -m`/kernel/drivers/ata, which is easily found in /lib/modules/`uname -m`/modules.block, it may have a chance, but the initramsfs has to be as small as possible so it fits in /proc/meminfo/MemTotal. I don't know, maybe parse /proc/mounts for boot and root, maybe get the device names from /etc/fstab?

[Please accept my humble apology. I suffer from what the docs classify as a serious illness, which apparently affects my patience. I know everyone tried to help without all of the facts necessary to effectively triage this issue. For that, I am indeed grateful.]

PTrenholme 04-18-2013 02:03 PM

Well the sbin/new-kernel-pkg file is a shell script, so you could just edit it so it would do the right thing with the unexpected argument.


All times are GMT -5. The time now is 08:46 AM.