Bug#579970: no crypttab and bogus mdadm.conf in initiaalramfs
Package: installation-reports
Severity: normal
I made three partitions on two identical drives:
sd[ab]1, 1GB, raid1, /boot, ext4
sd[ab]2, 1GB, encrypted, swap
sd[ab]3, 319GB, raid1, encrypted, /, ext4
The installer indicated no problem. On first boot the root filesystem could not be mounted.
I set up the raids, the encryped root filesystem, edited mdadm and crypttab, ran dpkg-reconfigure linux-image... and now it works.
/etc/crypttab was empty before and mdadm.conf contained some totaly bogus entries, which seem to come from another machine:
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md/0 metadata=1.2 UUID=f6de5584:d9dbce39:090f16ff:f795e54c name=hetzner:0
ARRAY /dev/md/1 metadata=1.2 UUID=0e065fee:15dea43e:f4ed7183:70d519bd name=hetzner:1
ARRAY /dev/md/2 metadata=1.2 UUID=ce4dd5a8:d8c2fdf4:4612713e:06047473 name=hetzner:2
# This file was auto-generated on Sun, 06 Feb 2011 05:54:50 +0000
# by mkconf 3.1.4-1+8efb9d1
My new mdadm.conf and crypttab:
DEVICE /dev/sd[ab][13]
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md/0 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md/1 devices=/dev/sda3,/dev/sdb3
# <target name> <source device> <key file> <options>
md1_crypt /dev/md1 none luks,tries=0
swap1 /dev/sda2 /dev/urandom swap
swap2 /dev/sdb2 /dev/urandom swap
Reply to: