Mailinglist Archive: opensuse (1047 mails)

< Previous Next >
Re: [opensuse] Bootup of Luks partitions not waiting long for Password
On 01/24/2016 03:59 AM, Carlos E. R. wrote:
On 2016-01-24 08:05, John Andersen wrote:

You may have "stuck" hibernation; what

grub2-editenv - list

says? (It is really lone `-' there).


This is not s hibernation issue. I shut down the machine normally.

Nevertheless, please try that command.


I've forgotten which command I am supposed to run.
So starting back at Andrei's suggestion appended to your suggestion this is
what I did.

I edited /etc/default/grub as you suggested, and added plymouth.enable=0 to the
default cmd line per Andrei Borzenkov.

See trimmed listing of /etc/default/grub after this edit:


# Modified by YaST2. Last modification on Sat Jan 23 11:07:33 PST 2016
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not
able to recognize it
(e.g. change of flavor or strange install order ) it it use as fallback
installation parameters
from /etc/sysconfig/bootloader

# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg'
afterwards to update
# /boot/grub2/grub.cfg.
GRUB_DISTRIBUTOR=openSUSE
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=8
GRUB_CMDLINE_LINUX_DEFAULT="
resume=/dev/disk/by-uuid/86b250ea-1e75-433f-a045-73f2a117c1a6
splash=silent quiet showopts plymouth.enable=0"
#
######################################################################################################################
Added above per Andrei Borzenkov
# kernel command line options for failsafe mode
GRUB_CMDLINE_LINUX_RECOVERY="showopts apm=off noresume edd=off powersaved=off
nohz=off highres=off
processor.max_cstate=1 nomodeset x11failsafe"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains

---clip to save space


Then I did:
poulsbo:/etc/default # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-3.16.7-29-desktop
Found initrd image: /boot/initrd-3.16.7-29-desktop
Found linux image: /boot/vmlinuz-3.16.7-24-desktop
Found initrd image: /boot/initrd-3.16.7-24-desktop
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
No volume groups found
done


Then Shutdown to power off.
Then Reboot

The reboot Said Welcome to Grub, then popped up a default and advanced options
choice (in a
graphical display)
I sat there till the count down timer expired and the Default was taken
automatically.

It flashed the screen to black a couple of times then proceeded to show the old
familiar scrolling
text display.

It stopped after a line reading
Please enter the passphrase for disc WDC-yadda-yadda-2 (cr-mysource) on
/mysource!

At this point, I sat there and counted seconds. At 5 seconds it auto resumed.
It finished booting, but did not mount /mysource nor did it mount /home which
is also encrypted.
(Nor did it ask me for the password of /home)

I shutdown, and repeated the boot, this time typing at less than full speed
when it asked
for the password. In spite of the fact that I was only 4 characters into the
password, it
resumed booting, (and failing to mount) the encrypted partitions.

I repeated again, typed quickly, and it booted properly and mounted both
encrypted partitions
(but again only asking for one password, - they are both the same, and it must
try what
it was given the first time before asking the second time)

So you see this is not dependent on presence or absence of plymouth. When
Plymouth is there
it stops and waits the same 5 or 6 seconds before resuming (but it gives no
clue which disk
it is asking the password for.

But the problem is STILL that it will resume the boot process in 5 seconds or
so.

Again this is a pretty much stock 13.2 without BTRFS, with two partitions
encrypted xfs partitions
as shown below:

poulsbo:~ # cat /etc/fstab
UUID=9c13c3bb-c0c6-4b95-be1f-e34e7c9498ab / ext4
acl,user_xattr 1 1
/dev/mapper/cr_mysource /mysource xfs nofail
0 2
UUID=86b250ea-1e75-433f-a045-73f2a117c1a6 swap swap
defaults 0 0
/dev/mapper/cr_ata-WDC_WD5000BPKX-22HPJT0_WD-WX31A64R7974-part4 /home
xfs
nofail 0 2

I would like to push that wait time at least to 10 seconds, because the
slightet distraction
while booting, and I miss the oppertunity entirely.








--
After all is said and done, more is said than done.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups