On Sat, May 3, 2014 at 12:00 PM, Stefan G. Weichinger <[email protected]> wrote:
[snip]
> An older kernel (3.13.4) boots OK ... the newer ones are screwed up
> (their initramfs) ...
>
> Back to the start.
>
> As I don't boot from LVM or mdadm-raid I consider to not need any
> "DRACUT_MODULES=" in /etc/portage/make.conf, right?
>
> What do you guys have in /etc/dracut.conf ?
>
> Canek, I use your kerninst-tool ...
>
> And there are settings in /etc/default/grub as well ... I somehow get
> the feeling that there are way too much bells and whistles in the game.
>
> I want to clean up as much as possible so that this more or less wasted
> day at least makes some sense in the end.
I'll give you my confs in my LVM2 virtual machine; my normal machines
don't use LVM2, so I don't think they'll help in any way.
Also, if my normal machines are lagging on updates, the virtual ones
are even more behind: my LVM vm has systemd 204!
I'm removing any comments:
/etc/default/grub.conf:
GRUB_DISTRIBUTOR="Gentoo"
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash"
GRUB_PRELOAD_MODULES="lvm mdraid1x"
Notice: no root, no real_root, nothing.
/etc/dracut.conf:
add_dracutmodules+="crypt lvm mdraid systemd"
add_drivers+="autofs4 ipv6 dm-crypt aes sha256"
fscks="umount mount /sbin/fsck* e2fsck"
/etc/fstab:
LABEL=Root / ext4 acl,noatime 0 1
LABEL=User /usr ext4 acl,noatime 0 2
LABEL=Boot /boot ext2 acl,noatime 0 2
LABEL=Home /home ext4 acl,noatime 0 2
/dev/mapper/swap none swap sw 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
tmpfs /tmp tmpfs defaults,nosuid,size=100% 0 0
/etc/crypttab:
home /dev/vg/vol5
swap /dev/vg/vol2 /dev/urandom swap
I didn't touched /etc/lvm/lvm.conf, nor /etc/mdadm.conf.
My drive topology:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
vda 253:0 0 5G 0 disk
`-vda1 253:1 0 5G 0 part
`-md127 9:127 0 15G 0 raid5
|-vg-vol1 (dm-0) 254:0 0 200M 0 lvm /boot
|-vg-vol3 (dm-1) 254:1 0 2G 0 lvm /
|-vg-vol4 (dm-2) 254:2 0 8G 0 lvm /usr
|-vg-vol2 (dm-3) 254:3 0 2G 0 lvm
| `-swap (dm-5) 254:5 0 2G 0 crypt [SWAP]
`-vg-vol5 (dm-4) 254:4 0 2.8G 0 lvm
`-home (dm-6) 254:6 0 2.8G 0 crypt /home
vdb 253:16 0 5G 0 disk
`-vdb1 253:17 0 5G 0 part
`-md127 9:127 0 15G 0 raid5
|-vg-vol1 (dm-0) 254:0 0 200M 0 lvm /boot
|-vg-vol3 (dm-1) 254:1 0 2G 0 lvm /
|-vg-vol4 (dm-2) 254:2 0 8G 0 lvm /usr
|-vg-vol2 (dm-3) 254:3 0 2G 0 lvm
| `-swap (dm-5) 254:5 0 2G 0 crypt [SWAP]
`-vg-vol5 (dm-4) 254:4 0 2.8G 0 lvm
`-home (dm-6) 254:6 0 2.8G 0 crypt /home
vdc 253:32 0 5G 0 disk
`-vdc1 253:33 0 5G 0 part
`-md127 9:127 0 15G 0 raid5
|-vg-vol1 (dm-0) 254:0 0 200M 0 lvm /boot
|-vg-vol3 (dm-1) 254:1 0 2G 0 lvm /
|-vg-vol4 (dm-2) 254:2 0 8G 0 lvm /usr
|-vg-vol2 (dm-3) 254:3 0 2G 0 lvm
| `-swap (dm-5) 254:5 0 2G 0 crypt [SWAP]
`-vg-vol5 (dm-4) 254:4 0 2.8G 0 lvm
`-home (dm-6) 254:6 0 2.8G 0 crypt /home
vdd 253:48 0 5G 0 disk
`-vdd1 253:49 0 5G 0 part
`-md127 9:127 0 15G 0 raid5
|-vg-vol1 (dm-0) 254:0 0 200M 0 lvm /boot
|-vg-vol3 (dm-1) 254:1 0 2G 0 lvm /
|-vg-vol4 (dm-2) 254:2 0 8G 0 lvm /usr
|-vg-vol2 (dm-3) 254:3 0 2G 0 lvm
| `-swap (dm-5) 254:5 0 2G 0 crypt [SWAP]
`-vg-vol5 (dm-4) 254:4 0 2.8G 0 lvm
`-home (dm-6) 254:6 0 2.8G 0 crypt /home
Do you want to see any other config?
Let me try to update this test VM to see if I can hit the same issue as you.
Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México