ohmysql wrote:I changed the swap id in both Mageia's fstab and /etc/dracut.conf/51-etc. Actually, in the latter I just removed the line... are you suggesting I put in the new UUID? In any case, I doubt that will help. The faulty UUID is clearly embedded somewhere in initrd because after changing fstab and 51-etc., it's still calling the faulty UUID and crashing.
ohmysql wrote:I'll install dracut now and let you know how it goes!
gohlip wrote:If it don't work, I don't think I can help further, but try jiml8 chroot too. please let us know.
# Entry for /dev/sda7 :
UUID=894e96b8-etc. / ext4 relatime,acl 1 1
# Entry for /dev/sda3 :
UUID=89fe673b-etc. /media/Data ext4 acl,relatime 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
#UUID=7137669c-etc. swap swap nofail 0 0
/dev/sda5 swap swap nofail 0 0
dracut -f
WARNING: Activating non-hostonly initrd due to distro upgrade.
Your initrd will be larger than needed for compatibility.
You can disable this by setting DRACUT_SKIP_FORCED_NON_HOSTONLY=1
Executing: /usr/bin/dracut -f
dracut module 'network' will not be installed, because it's in the list to be omitted!
dracut module 'network' will not be installed, because it's in the list to be omitted!
dracut module 'cifs' depends on 'network', which can't be installed
dracut module 'systemd' will not be installed, because it's in the list to be omitted!
*** Including module: bash ***
*** Including module: dash ***
*** Including module: modsign ***
*** Including module: i18n ***
*** Including module: ifcfg ***
*** Including module: drm ***
*** Including module: plymouth ***
*** Including module: crypt ***
*** Including module: dm ***
Skipping udev rule: 64-device-mapper.rules
Skipping udev rule: 60-persistent-storage-dm.rules
Skipping udev rule: 55-dm.rules
*** Including module: kernel-modules ***
*** Including module: resume ***
*** Including module: rootfs-block ***
*** Including module: terminfo ***
*** Including module: udev-rules ***
Skipping udev rule: 91-permissions.rules
*** Including module: usrmount ***
*** Including module: base ***
*** Including module: fs-lib ***
*** Including module: shutdown ***
*** Including modules done ***
Failed to install module ahci
*** Installing kernel module dependencies and firmware ***
*** Installing kernel module dependencies and firmware done ***
*** Resolving executable dependencies ***
*** Resolving executable dependencies done***
*** Stripping files ***
*** Stripping files done ***
*** Creating image file ***
*** Creating image file done ***
ohmysql wrote:Anyway, this dracut -f thing didn't seem to work. I'll post the results, let me know if there's a crucial error?
- Code: Select all
dracut -f
WARNING: Activating non-hostonly initrd due to distro upgrade.
Your initrd will be larger than needed for compatibility.
You can disable this by setting DRACUT_SKIP_FORCED_NON_HOSTONLY=1
Executing: /usr/bin/dracut -f
dracut module 'network' will not be installed, because it's in the list to be omitted!
dracut module 'network' will not be installed, because it's in the list to be omitted!
dracut module 'cifs' depends on 'network', which can't be installed
dracut module 'systemd' will not be installed, because it's in the list to be omitted!
*** Including module: bash ***
*** Including module: dash ***
*** Including module: modsign ***
*** Including module: i18n ***
*** Including module: ifcfg ***
*** Including module: drm ***
*** Including module: plymouth ***
*** Including module: crypt ***
*** Including module: dm ***
Skipping udev rule: 64-device-mapper.rules
Skipping udev rule: 60-persistent-storage-dm.rules
Skipping udev rule: 55-dm.rules
*** Including module: kernel-modules ***
*** Including module: resume ***
*** Including module: rootfs-block ***
*** Including module: terminfo ***
*** Including module: udev-rules ***
Skipping udev rule: 91-permissions.rules
*** Including module: usrmount ***
*** Including module: base ***
*** Including module: fs-lib ***
*** Including module: shutdown ***
*** Including modules done ***
Failed to install module ahci
*** Installing kernel module dependencies and firmware ***
*** Installing kernel module dependencies and firmware done ***
*** Resolving executable dependencies ***
*** Resolving executable dependencies done***
*** Stripping files ***
*** Stripping files done ***
*** Creating image file ***
*** Creating image file done ***
lsinitrd /boot/initrd.img | grep -i by-uuid
menuentry 'Mageia 4 latest tip' {
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 894e96b8-etc.
linux /boot/vmlinuz-desktop root=UUID=894e96b8-etc. ro nokmsboot systemd.unit=multi-user
initrd /boot/initrd-desktop.img
#systemd.unit=multi-user is to prevent a fail
}
lsinitrd /boot/initrd-desktop.img | grep -i by-uuid
-rw-r--r-- 1 root root 146 Sep 13 15:23 usr/lib/dracut/hooks/emergency/80-\\x2fdev\\x2fdisk\\x2fby-uuid\\x2f7137669c-etc.sh
-rw-r--r-- 1 root root 64 Sep 13 15:23 usr/lib/dracut/hooks/initqueue/finished/devexists-\\x2fdev\\x2fdisk\\x2fby-uuid\\x2f7137669c-.etc.sh
Any ideas where it's getting the idea to build initrd with that old swap file UUID? I have a feeling we're really close.
lsinitrd /boot/vmlinuz-3.xx.x-desktop-x.xxmgax |grep -i by-uuid
# ln -sf /boot/initrd-3.xx.x-desktop-x.xxmgax.img /boot/initrd-desktop.img
# ln -sf /boot/vmlinuz-3.xx.x-desktop-x.xxmgax /boot/vmlinuz-desktop
lsinitrd /boot/initrd-3.12.25-desktop-3.mga4.img | grep -i by-uuid
-rw-r--r-- 1 root root 146 Sep 13 15:23 usr/lib/dracut/hooks/emergency/80-\\x2fdev\\x2fdisk\\x2fby-uuid\\x2f7137669c-6e62-4f68-ade2-a010207ac3c7.sh
-rw-r--r-- 1 root root 64 Sep 13 15:23 usr/lib/dracut/hooks/initqueue/finished/devexists-\\x2fdev\\x2fdisk\\x2fby-uuid\\x2f7137669c-6e62-4f68-ade2-a010207ac3c7.sh
No. you're right. No point to do symlinks if uuid still wrong.ohmysql wrote:Ya, good question, but looks like no luck?
I didn't bother doing the syslinks you suggested because it looks like the UUIDs are still wrong. But let me know if I misunderstood.
ohmysql wrote:Yeah, I'd be willing to look into the Hooks if that's helpful!
I think so too.ohmysql wrote:I hope this is an interesting and relevant problem!
OMS!
gohlip wrote:ohmysql wrote:Yeah, I'd be willing to look into the Hooks if that's helpful!
Yes. If you can find where the hooks are, it will be great. I tried to find where there are, but I couldn't find them.
ohmysql wrote:-rw-r--r-- 1 root root 146 Sep 13 15:23 usr/lib/dracut/hooks/emergency/80-\\x2fdev\\x2fdisk\\x2fby-uuid\\x2f7137669c-6e62-4f68-ade2-a010207ac3c7.sh
-rw-r--r-- 1 root root 64 Sep 13 15:23 usr/lib/dracut/hooks/initqueue/finished/devexists-\\x2fdev\\x2fdisk\\x2fby-uuid\\x2f7137669c-6e62-4f68-ade2-a010207ac3c7.sh
mkdir -p /tmp/initrd && cd /tmp/initrd
gzip -dc /boot/initrd.img | cpio -iv
find . | cpio -o -H newc | gzip > /boot/new-initrd.img
menuentry 'Mageia 4 latest tip' {
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 894e96b8-etc.
linux /boot/vmlinuz-desktop root=UUID=894e96b8-etc. ro nokmsboot systemd.unit=multi-user rd.hostonly=0
initrd /boot/initrd-desktop.img
#systemd.unit=multi-user is to prevent a fail
#rd.hostonly=0
}
ohmysql wrote:systemd.unit=multi-user
[...]
linux /boot/vmlinuz-desktop root=UUID=894e96b8-etc. ro nokmsboot systemd.unit=multi-user rd.hostonly=0
#systemd.unit=multi-user is to prevent a fail
Users browsing this forum: No registered users and 1 guest