[pkg-cryptsetup-devel] Bug#728080: initramfs password prompt wording can be improved

Joachim Breitner nomeata at debian.org
Mon Oct 28 08:34:18 UTC 2013


Package: cryptsetup
Version: 2:1.6.1-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

currently, the password prompt in the initramfs is defined in
/usr/share/initramfs-tools/scripts/local-top/cryptroot
as
cryptkey="Unlocking the disk $cryptsource ($crypttarget)\nEnter passphrase: "

This can be improved in various ways:
 * When using plymouth, it is not guaranteed (even unlikely) that the
   password field will be _after_ the prompt, so the "Enter passphrase:"
   at the end looks strange. An imperative sentence like
   “Please enter passphrase to unlock disk ...” might work in more situations.
 * The $cryptsource can be a UUID="..." string which is really not
   helpful, and so long that it breaks some plymouth themes. I seee two
   possibilities:
    - Only print $crypttarget. This has usually some useful name, so it
      ought to be sufficient. If you don't like that, at least
    - only print $crypttarget if $cryptsource is a UUID.

I’ll be happy to submit a patch if you agree that these changes would be
an improvement.

Thanks,
Joachim


- -- Package-specific info:
- -- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.11-1-amd64 root=/dev/mapper/kirk-root ro quiet splash init=/lib/systemd/systemd

- -- /etc/crypttab
sda5_crypt /dev/sda5 none luks

#backup		/dev/vg-500/backup	/etc/luks-keys/vg500-backup	luks,noauto

- -- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/kirk-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=5145d8c3-8511-4e9d-8cd2-8b79b7ee7f6b /boot           ext2    defaults        0       2
/dev/mapper/kirk-home /home           ext4    defaults        0       2
/dev/mapper/kirk-swap_1 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

/dev/mmcblk0p1	/mnt/sdcard	vfat	defaults,users,user,noauto,noexec	 0 0

UUID=082adeb3-80e3-40b8-97f4-cf195243819a /mnt/media	ext3	defaults,users,noauto
#/dev/vg-500/backup	/mnt/backup	ext3	defaults,user,noauto,exec	0	0
/dev/vg-jeff/backup-image /mnt/backup	ext3	defaults,user,noauto,exec	0	0
kent.vpn.ehbuehl.net:/mnt/media1000 /mnt/media1000	nfs	defaults,users,noauto,hard,intr 0  0

overlay         /var/lib/schroot/union/overlay tmpfs         defaults,size=80%

- -- lsmod
Module                  Size  Used by
openafs               618664  2 
binfmt_misc            12882  1 
parport_pc             22422  0 
ppdev                  12724  0 
lp                     13025  0 
parport                31858  3 lp,ppdev,parport_pc
nfsd                  212451  2 
auth_rpcgss            43068  1 nfsd
oid_registry           12419  1 auth_rpcgss
nfs_acl                12511  1 nfsd
nfs                   121791  0 
lockd                  72004  2 nfs,nfsd
fscache                37992  1 nfs
sunrpc                188958  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
iTCO_wdt               12831  0 
iTCO_vendor_support    12704  1 iTCO_wdt
x86_pkg_temp_thermal    13088  0 
cdc_mbim               12736  0 
snd_hda_codec_hdmi     35967  1 
psmouse                74801  0 
coretemp               12898  0 
serio_raw              12940  0 
microcode              30542  0 
snd_hda_codec_realtek    41107  1 
thinkpad_acpi          61166  0 
arc4                   12536  2 
nvram                  13092  1 thinkpad_acpi
snd_seq_midi           12848  0 
pcspkr                 12632  0 
snd_seq_midi_event     13316  1 snd_seq_midi
uvcvideo               66710  0 
videobuf2_vmalloc      12848  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
cdc_ncm                17410  1 cdc_mbim
videobuf2_core         31053  1 uvcvideo
iwldvm                111777  0 
i2c_i801               17045  0 
videodev               93149  2 uvcvideo,videobuf2_core
mac80211              353358  1 iwldvm
media                  18345  2 uvcvideo,videodev
snd_rawmidi            22959  1 snd_seq_midi
usbnet                 22815  2 cdc_mbim,cdc_ncm
mii                    12675  1 usbnet
snd_hda_intel          35821  3 
cdc_wdm                17474  1 cdc_mbim
snd_hda_codec         122811  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
cdc_acm                22167  0 
iwlwifi                73173  1 iwldvm
snd_hwdep              13189  1 snd_hda_codec
snd_seq                45053  2 snd_seq_midi_event,snd_seq_midi
snd_pcm_oss            37026  0 
snd_seq_device         13176  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_mixer_oss          18034  1 snd_pcm_oss
cfg80211              311201  3 iwlwifi,mac80211,iwldvm
lpc_ich                16764  0 
snd_pcm                68455  4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
mfd_core               12601  1 lpc_ich
snd_page_alloc         13018  2 snd_pcm,snd_hda_intel
snd_timer              22686  2 snd_pcm,snd_seq
tpm_tis                17320  0 
tpm                    18071  1 tpm_tis
mei_me                 13522  0 
snd                    53024  19 snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device,snd_mixer_oss
tpm_bios               17540  1 tpm
battery                13101  0 
mei                    41988  1 mei_me
soundcore              13026  1 snd
rfkill                 19153  3 cfg80211,thinkpad_acpi
ac                     12668  0 
mperf                  12453  0 
evdev                  17576  26 
processor              28310  0 
vhost_net              17371  0 
tun                    22490  3 vhost_net
vhost                  18394  1 vhost_net
macvtap                17649  1 vhost_net
macvlan                17987  1 macvtap
kvm_intel             123539  0 
kvm                   305712  1 kvm_intel
loop                   22924  0 
fuse                   67118  1 
autofs4                27548  2 
ext4                  390013  3 
crc16                  12343  1 ext4
mbcache                13082  1 ext4
jbd2                   76290  1 ext4
dm_crypt               18314  1 
dm_mod                 63957  14 dm_crypt
sg                     26047  0 
sr_mod                 21988  0 
cdrom                  35173  1 sr_mod
sd_mod                 40582  3 
crc_t10dif             12348  1 sd_mod
crc32c_intel           21850  0 
ghash_clmulni_intel    13062  0 
aesni_intel            50895  2 
aes_x86_64             16719  1 aesni_intel
ablk_helper            12572  1 aesni_intel
cryptd                 14560  4 ghash_clmulni_intel,aesni_intel,ablk_helper
lrw                    12871  1 aesni_intel
gf128mul               13047  1 lrw
glue_helper            12773  1 aesni_intel
ahci                   25096  2 
libahci                23013  1 ahci
thermal                17468  0 
libata                141836  2 ahci,libahci
sdhci_pci              18030  0 
sdhci                  27236  1 sdhci_pci
mmc_core               77900  2 sdhci,sdhci_pci
scsi_mod              162198  4 sg,libata,sd_mod,sr_mod
wmi                    13243  0 
xhci_hcd               78249  0 
ehci_pci               12472  0 
ehci_hcd               40508  1 ehci_pci
i915                  518209  2 
video                  17844  1 i915
i2c_algo_bit           12841  1 i915
drm_kms_helper         31837  1 i915
usbcore               134768  9 uvcvideo,ehci_hcd,ehci_pci,usbnet,cdc_mbim,cdc_acm,cdc_ncm,cdc_wdm,xhci_hcd
usb_common             12440  1 usbcore
drm                   208556  3 i915,drm_kms_helper
i2c_core               24316  6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev
thermal_sys            23250  4 video,thermal,processor,x86_pkg_temp_thermal
e1000e                139539  0 
ptp                    13364  1 e1000e
pps_core               13238  1 ptp
button                 12944  1 i915


- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.1-1
ii  debconf [debconf-2.0]  1.5.51
ii  dmsetup                2:1.02.77-6+b1
ii  libc6                  2.17-93
ii  sysv-rc                2.88dsf-43

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.20.0-9
ii  console-setup                           1.102
ii  initramfs-tools [linux-initramfs-tool]  0.114
ii  kbd                                     1.15.5-1

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.16-2
ii  liblocale-gettext-perl  1.05-7+b2

- -- debconf information:
  cryptsetup/prerm_active_mappings: true

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iEYEARECAAYFAlJuIYgACgkQ9ijrk0dDIGyuWwCgpGbIRlawg7porrs3Khm9UMxa
mswAnjMzh1NZ2CdGALEsaDrkDZPl59I2
=Vw7c
-----END PGP SIGNATURE-----



More information about the pkg-cryptsetup-devel mailing list