Description of problem: After every --auto-update which includes an kernel update the root entries in menu.lst pointing root entry to =/dev Version-Release number of selected component (if applicable): How reproducible: Updating kernel. Steps to Reproduce: 1. urpmi --auto-update 2. 3. Reproducible: Steps to Reproduce:
Can you be more specific? What exactly does the entry look like? Normally it's just something like root (hd0,4), which just refers to a partition, not a directory, and /dev isn't on its own partition.
CC: (none) => tmb
(In reply to David Walser from comment #1) > Can you be more specific? What exactly does the entry look like? Normally > it's just something like root (hd0,4), which just refers to a partition, not > a directory, and /dev isn't on its own partition. The entry simply looks like the following: root=/dev It should look like root=UUID=<uuid of the root partion> (or /dev/sda1) P.S. Sorry, I meant the root param for the kernel, not the root param of grub ;)
Grub doesn't use equal signs (LILO does). What exactly does the *entire* entry for the kernel look like, and where are you seeing this?
The whole entry after kernel upgrade: title linux kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev nokmsboot splash quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d root (hd0,0) initrd /boot/initrd.img
diff of /boot/grub/menu.lst after kernel upgrade via urpmi: 13c13 < kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=c6d70883-5572-4a3b-9f9f-eb7fbfa5696d nokmsboot splash quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d --- > kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/ nokmsboot splash quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d 23d22 < 30d28 < 34a33,44 > > > title linux > kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=c6d70883-5572-4a3b-9f9f-eb7fbfa5696d nokmsboot splash quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d > root (hd0,0) > initrd /boot/initrd.img > > > title server 3.17.0rc5-1.mga5 > kernel (hd0,0)/boot/vmlinuz-3.17.0-server-0.rc5.1.mga5 BOOT_IMAGE=server_3.17.0rc5-1.mga5 root=/dev/ nokmsboot splash quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d > root (hd0,0) > initrd /boot/initrd-3.17.0-server-0.rc5.1.mga5.img
Possible this result in a bug from installer which results in an empty fstab? Output from urpmi: cannot find root partition in /etc/fstab Creating: target|kernel|dracut args|basicmodules Executing: /bin/dracut -f /boot/initrd-3.17.0-server-0.rc7.1.mga5.img 3.17.0-server-0.rc7.1.mga5 dracut module 'bootchart' will not be installed, because command '/sbin/bootchartd' could not be found! dracut module 'caps' will not be installed, because command 'capsh' could not be found! dracut module 'busybox' will not be installed, because command 'busybox' could not be found! 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 'ifcfg' depends on 'network', which can't be installed dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found! dracut module 'crypt' will not be installed, because command 'cryptsetup' could not be found! dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found! dracut module 'lvm' will not be installed, because command 'lvm' could not be found! dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found! dracut module 'multipath' will not be installed, because command 'multipath' could not be found! dracut module 'crypt-gpg' will not be installed, because command 'gpg' could not be found! dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found! dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found! dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found! dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found! dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found! dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found! 95nfs: Could not find any command of 'rpcbind portmap'! dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found! dracut module 'systemd' will not be installed, because it's in the list to be omitted! dracut module 'caps' will not be installed, because command 'capsh' could not be found! dracut module 'busybox' will not be installed, because command 'busybox' could not be found! dracut module 'ifcfg' depends on 'network', which can't be installed dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found! dracut module 'crypt' will not be installed, because command 'cryptsetup' could not be found! dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found! dracut module 'lvm' will not be installed, because command 'lvm' could not be found! dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found! dracut module 'multipath' will not be installed, because command 'multipath' could not be found! [71/1989] dracut module 'crypt-gpg' will not be installed, because command 'gpg' could not be found! dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found! dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found! dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found! dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found! dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found! dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found! 95nfs: Could not find any command of 'rpcbind portmap'! dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found! dracut module 'systemd' will not be installed, because it's in the list to be omitted! dracut module 'caps' will not be installed, because command 'capsh' could not be found! dracut module 'busybox' will not be installed, because command 'busybox' could not be found! dracut module 'ifcfg' depends on 'network', which can't be installed dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found! dracut module 'crypt' will not be installed, because command 'cryptsetup' could not be found! dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found! dracut module 'lvm' will not be installed, because command 'lvm' could not be found! dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found! dracut module 'multipath' will not be installed, because command 'multipath' could not be found! dracut module 'crypt-gpg' will not be installed, because command 'gpg' could not be found! dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found! dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found! dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found! dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found! dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found! dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found! dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found! 95nfs: Could not find any command of 'rpcbind portmap'! *** Including module: bash *** *** Including module: dash *** *** Including module: i18n *** *** Including module: drm *** *** Including module: plymouth *** *** Including module: kernel-modules *** *** Including module: rootfs-block *** *** Including module: terminfo *** *** Including module: udev-rules *** Skipping udev rule: 91-permissions.rules Skipping udev rule: 80-drivers-modprobe.rules *** Including module: usrmount *** *** Including module: base *** *** Including module: fs-lib *** *** Including module: shutdown *** *** Including modules done *** *** 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 *** *** Store current command line parameters *** *** Creating image file *** *** Creating image file done *** cat /etc/fstab none /proc proc defaults 0 0
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=12064
(In reply to Meg Skywalker from comment #4) > The whole entry after kernel upgrade: > > title linux > kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev nokmsboot splash > quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d > root (hd0,0) > initrd /boot/initrd.img OK, looks like /sbin/installkernel had an issue.
CC: (none) => thierry.vignaud
Anything new on this bug? Still have to edit the grub config after every kernelupdate (and before reboot)
Seems like the bug started at Kernel 3.17.0rc6-1.mga5 (or RC5, which update i've missed) and still exists. rc4 looks correct in menu.lst.
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=13797
> cannot find root partition in /etc/fstab kernel-server-3.18.1-4.mga5 bug still exist :(
*** Bug 13797 has been marked as a duplicate of this bug. ***
CC: (none) => krnekitSee Also: https://bugs.mageia.org/show_bug.cgi?id=13797 => (none)
Can you: 1) remove the entry from one kernel, preferably not the one of the running kernel 2) look at "rpm -q --script <the_kernel_you_just_shoot" for the proper installkernel command (you can list all kernels by running "rpm -qa 'kernel\*'" 3) manually run this command (append " 2>&1 | tee instkernel.txt" in order to save any interesting output) 4) keep its logs & output around 5) does it work?
Keywords: (none) => NEEDINFOSource RPM: (none) => bootloader-utils, drakxtools
(In reply to Thierry Vignaud from comment #12) > Can you: > 1) remove the entry from one kernel, preferably not the one of the running > kernel title server 3.19.0-4.mga5 kernel (hd0,0)/boot/vmlinuz-3.19.0-server-4.mga5 BOOT_IMAGE=server_3.19.0-4.mga5 root=/dev/ nokmsboot splash quiet resume=UUID=44df8c01-9bf0-4537-8457-1e95b325a95d root (hd0,0) initrd /boot/initrd-3.19.0-server-4.mga5.img > 2) look at "rpm -q --script <the_kernel_you_just_shoot" for the proper rpm -q --scripts kernel-server-3.19.0-4.mga5-1-1.mga5 > installkernel command > (you can list all kernels by running "rpm -qa 'kernel\*'" rpm -qa 'kernel*' kernel-server-latest-3.19.0-4.mga5 kernel-userspace-headers-3.19.0-4.mga5 kernel-firmware-20150204-1.mga5 kernel-server-3.19.0-4.mga5-1-1.mga5 kernel-server-3.14.2-2.mga5-1-1.mga5 kernel-firmware-nonfree-20150204-1.mga5.nonfree kernel-server-3.19.0-0.rc7.3.mga5-1-1.mga5 > 3) manually run this command > (append " 2>&1 | tee instkernel.txt" in order to save any interesting > output) /sbin/installkernel 3.19.0-server-4.mga5 cannot find root partition in /etc/fstab > 4) keep its logs & output around > 5) does it work? nope, same error (see comment 10)
(In reply to Meg Skywalker from comment #13) > /sbin/installkernel 3.19.0-server-4.mga5 > cannot find root partition in /etc/fstab What's the contents of /etc/fstab ?
(In reply to Thomas Backlund from comment #14) > What's the contents of /etc/fstab ? none /proc proc defaults 0 0 Modifiziert: 2014-10-03 20:18:53.000000000 +0200 no rpmsave or rpmnew exists
ok, so thats the real "bug" then... something or someone has resetted that file... That file should have references to root partition / and swap and any other partition want automounted If you want us to help re-create the needed contents, then provide output of theese commands (as root): mount blkid
(In reply to Thomas Backlund from comment #16) > ok, so thats the real "bug" then... something or someone has resetted that > file... thats already assumed in comment #6. (and also in duplicates) So the question is, why is this file resetted without backup and user interaction. > > That file should have references to root partition / > and swap and any other partition want automounted > > If you want us to help re-create the needed contents, then provide output of > theese commands (as root): > > mount proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,size=1020820k,nr_inodes=255205,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) /dev/sda1 on / type ext4 (rw,relatime,data=ordered) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct) tmpfs on /tmp type tmpfs (rw) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime,mode=755) mqueue on /dev/mqueue type mqueue (rw,relatime) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) tmpfs on /run/user/500 type tmpfs (rw,nosuid,nodev,relatime,size=205104k,mode=700,uid=500,gid=500) > > blkid /dev/sda1: UUID="c6d70883-5572-4a3b-9f9f-eb7fbfa5696d" TYPE="ext4" PARTUUID="000c8b31-01" /dev/sda5: UUID="44df8c01-9bf0-4537-8457-1e95b325a95d" TYPE="swap" PARTUUID="000c8b31-05" /dev/sda6: UUID="6d9dddda-74ba-4a72-bae3-74f09c8e15ec" TYPE="ext4" PARTUUID="000c8b31-06" Looks like sda6 was the home dir (files dates on 18.03.14).
(In reply to Meg Skywalker from comment #17) > (In reply to Thomas Backlund from comment #16) > > ok, so thats the real "bug" then... something or someone has resetted that > > file... > thats already assumed in comment #6. (and also in duplicates) > Oh, sorry, missed that one... > So the question is, why is this file resetted without backup and user > interaction. Going by the date I think you got hit by a rpmdrake bug that where it did not read protected files list, and suggested using the rpmnew file... So, going by the info in comment 17 this should be in your /etc/fstab: none /proc proc defaults 0 0 # Entry for /dev/sda1 : UUID=c6d70883-5572-4a3b-9f9f-eb7fbfa5696d / ext4 relatime,acl 1 1 # Entry for /dev/sda5 : UUID=44df8c01-9bf0-4537-8457-1e95b325a95d swap swap defaults 0 0 # Entry for /dev/sda6 : UUID=6d9dddda-74ba-4a72-bae3-74f09c8e15ec /home ext4 relatime,acl 1 2
Closing as this was due to a temporary glitch in rpmdrake
Status: NEW => RESOLVEDResolution: (none) => OLD