Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
After upgrading the system with apt-get upgrade and apt-get dist-upgrade
as usual, and booting the laptop the next day, I couldn't even boot.
I always had a microSDHC card inserted in the laptop, with my encrypted
keyring and a few other encrypted partitions. There are fstab(5)
entries for them, and also crypttab(5) entries. systemd has always
worked with that and never gave any problems. Now it won't boot
anymore. I've had to extract the card from the slot and reboot so that
this systemd regression would allow me to boot.
$ cat /etc/fstab | awk '/alx.BEGIN/,/alx.END/'
# alx BEGIN
/dev/mapper/alx-bak-g /home/alx/keyring/bak/gnupg ext4 noauto,defaults,user=alx
/dev/mapper/alx-bak-s /home/alx/keyring/bak/ssh ext4 noauto,defaults,user=alx
/dev/mapper/alx-bak-p /home/alx/keyring/bak/password-store ext4 noauto,defaults,user=alx
/dev/mapper/alx-bak-m /home/alx/keyring/bak/master ext4 noauto,defaults,user=alx
/dev/mapper/alx-bak-a /home/alx/keyring/bak/abook ext4 noauto,defaults,user=alx
/dev/mapper/alx-usb-g /home/alx/.gnupg ext4 noauto,defaults,user=alx
/dev/mapper/alx-usb-s /home/alx/.ssh ext4 noauto,defaults,user=alx
/dev/mapper/alx-usb-p /home/alx/.password-store ext4 noauto,defaults,user=alx
/dev/mapper/alx-usb-m /home/alx/keyring/master ext4 noauto,defaults,user=alx
/dev/mapper/alx-usb-a /home/alx/.abook ext4 noauto,defaults,user=alx
/dev/mapper/alx-k-g /home/alx/.gnupg ext4 noauto,defaults,user=alx
/dev/mapper/alx-k-s /home/alx/.ssh ext4 noauto,defaults,user=alx
/dev/mapper/alx-k-p /home/alx/.password-store ext4 noauto,defaults,user=alx
/dev/mapper/alx-k-m /home/alx/keyring/master ext4 noauto,defaults,user=alx
/dev/mapper/alx-k-a /home/alx/.abook ext4 noauto,defaults,user=alx
/dev/mapper/alx-opt /opt ext4 noauto,defaults
/dev/mapper/alx-srv /srv ext4 noauto,defaults
# alx END
Because of the 'noauto', this never gave problems. It only mounted when
I ask it to, after logging in. But now it seems systemd is trying to
mount them, and does it repeatedly.
Here's the crypttab(5):
$ cat /etc/crypttab | awk '/alx.BEGIN/,/alx.END/'# alx BEGIN
alx-usb-g /dev/sda1 none noauto
alx-usb-s /dev/sda2 none noauto
alx-usb-p /dev/sda3 none noauto
alx-usb-m /dev/sda4 none noauto
alx-usb-a /dev/sda5 none noauto
alx-bak-g /dev/sdb1 none noauto
alx-bak-s /dev/sdb2 none noauto
alx-bak-p /dev/sdb3 none noauto
alx-bak-m /dev/sdb4 none noauto
alx-bak-a /dev/sdb5 none noauto
alx-k-g /dev/mmcblk0p1 none noauto
alx-k-s /dev/mmcblk0p2 none noauto
alx-k-p /dev/mmcblk0p3 none noauto
alx-k-m /dev/mmcblk0p4 none noauto
alx-k-a /dev/mmcblk0p5 none noauto
alx-opt /dev/nvme0n1p4 none noauto
alx-srv /dev/nvme0n1p5 none noauto
# alx END
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
After extracting the card, I could boot, but I still see some errors:
[ 10.653392] systemd-fstab-generator[735]: Failed to create unit file '/run/systemd/generator/home-alx-.gnupg.mount', as it already exists. Duplicate entry in '/etc/fstab'?
[ 10.653489] systemd-fstab-generator[735]: Failed to create unit file '/run/systemd/generator/home-alx-.ssh.mount', as it already exists. Duplicate entry in '/etc/fstab'?
[ 10.653548] systemd-fstab-generator[735]: Failed to create unit file '/run/systemd/generator/home-alx-.password\x2dstore.mount', as it already exists. Duplicate entry in '/etc/fstab'?
[ 10.653610] systemd-fstab-generator[735]: Failed to create unit file '/run/systemd/generator/home-alx-keyring-master.mount', as it already exists. Duplicate entry in '/etc/fstab'?
[ 10.653666] systemd-fstab-generator[735]: Failed to create unit file '/run/systemd/generator/home-alx-.abook.mount', as it already exists. Duplicate entry in '/etc/fstab'?
[ 10.655359] (generato[731]: '/usr/lib/systemd/system-generators/systemd-fstab-generator' failed with exit status 1.
But I don't want to be exteracting the card in every boot.
If I don't extract the card, I can't boot at all (and thus can't even
report the errors I see then, since I'm on a trip and don't have another
computer).
* What outcome did you expect instead?
Normal boot without extracting the card, as always.
I'm unable to report upstream, because systemd maintainers have banned
me on their github page, unfairly I shall say.
Have a lovely day!
Alex