Bug 14089 - wrong root entry in menu.lst
Summary: wrong root entry in menu.lst
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 13797 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-11 09:25 CEST by Meg Skywalker
Modified: 2015-05-19 10:02 CEST (History)
3 users (show)

See Also:
Source RPM: bootloader-utils, drakxtools
CVE:
Status comment:


Attachments

Description Meg Skywalker 2014-09-11 09:25:09 CEST
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:
Comment 1 David Walser 2014-09-11 21:12:46 CEST
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

Comment 2 Meg Skywalker 2014-09-12 08:59:02 CEST
(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 ;)
Comment 3 David Walser 2014-09-12 13:18:44 CEST
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?
Comment 4 Meg Skywalker 2014-09-13 11:18:10 CEST
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
Comment 5 Meg Skywalker 2014-09-18 12:22:11 CEST
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
Comment 6 Meg Skywalker 2014-10-01 16:00:50 CEST
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
Meg Skywalker 2014-10-07 10:08:19 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=12064

Comment 7 David Walser 2014-10-08 01:21:08 CEST
(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

Comment 8 Meg Skywalker 2014-11-12 10:21:27 CET
Anything new on this bug? 
Still have to edit the grub config after every kernelupdate (and before reboot)
Comment 9 Meg Skywalker 2014-12-17 13:17:14 CET
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.
Meg Skywalker 2014-12-17 13:27:21 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=13797

Comment 10 Meg Skywalker 2015-01-13 10:22:50 CET
> cannot find root partition in /etc/fstab

kernel-server-3.18.1-4.mga5 bug still exist :(
Comment 11 David Walser 2015-01-13 16:54:49 CET
*** Bug 13797 has been marked as a duplicate of this bug. ***

CC: (none) => krnekit
See Also: https://bugs.mageia.org/show_bug.cgi?id=13797 => (none)

Comment 12 Thierry Vignaud 2015-04-14 16:06:50 CEST
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) => NEEDINFO
Source RPM: (none) => bootloader-utils, drakxtools

Comment 13 Meg Skywalker 2015-04-21 13:22:28 CEST
(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)
Comment 14 Thomas Backlund 2015-04-21 13:30:04 CEST
(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 ?
Comment 15 Meg Skywalker 2015-04-21 13:42:28 CEST
(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
Comment 16 Thomas Backlund 2015-04-21 13:55:21 CEST
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
Comment 17 Meg Skywalker 2015-04-21 14:08:37 CEST
(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).
Comment 18 Thomas Backlund 2015-04-21 21:26:37 CEST
(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
Comment 19 Thierry Vignaud 2015-05-19 10:02:16 CEST
Closing as this was due to a temporary glitch in rpmdrake

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.