Bug 1045864 - fedup 0.8 update F19->F20 fails with multiple LUKS partitions
Summary: fedup 0.8 update F19->F20 fails with multiple LUKS partitions
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: fedup
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1044551 1044761 1046281 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-22 16:21 UTC by Sam Varshavchik
Modified: 2015-02-18 11:01 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-02-18 11:01:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sam Varshavchik 2013-12-22 16:21:14 UTC
Description of problem:

fedup 0.8 from F19 to F20 starts after rebooting, then stops after "Mounted /boot".

Version-Release number of selected component (if applicable):

0.8

How reproducible:

Always

Steps to Reproduce:
1. Install F19 with / and /home encrypted with LUKS
2. Try to update to F20 using fedup --iso, with the appropriate --enablerepos to pull in Fedora 20 and Fedora 20 update repos, so that all dependencies get resolved with no failures.

Actual results:

fedup --iso completes without errors, reboot start after the "Mounted /boot" message.

Expected results:

Update starts, and runs.

Additional info:

systemctl list-jobs shows the following:

132 system-upgrade.target                                          start waiting
133 sysinit.target                                                 start waiting
134 local-fs.target                                                start waiting
135 home.mount                                                     start waiting
136 systemd-fsck@dev-map...x2d48f2\x2d9ad1\x2d49da41ccd72e.service start waiting
137 dev-mapper-luks\x2d6...\x2d48f2\x2d9ad1\x2d49da41ccd72e.device start running
138 systemd-cryptsetup@l...x2d48f2\x2d9ad1\x2d49da41ccd72e.service start running
166 systemd-journal-flush.service                                  start waiting
174 systemd-tmpfiles-setup.service                                 start waiting
184 plymouth-read-write.service                                    start waiting
185 cryptsetup.target                                              start waiting
194 system\x2dupgrade-media.mount                                  start waiting
195 upgrade-prep.service                                           start waiting
200 systemd-readahead-done.timer                                   start waiting

This appears to be the prompt to unlock a LUKS partition. The reboot prompted me once, for /'s password. I was not prompted for /home's password.

Both partitions have the same LUKS password. Early versions of LUKS support in Fedora prompted me separately for each partition, at system boot. Several releases ago, Fedora started prompting me only once for the LUKS password, and automatically tried it with the second partition.

Here, I get only one password prompt.

Comment 1 Sam Varshavchik 2013-12-22 17:34:23 UTC
The temporary workaround appears to be to switch to ALT-F2, and run systemctl cancel, on those stuck jobs. The main VT then complains loudly about /home, then continues to upgrade the system.

Comment 2 Sam Varshavchik 2013-12-23 23:44:47 UTC
Had more time to look at what happened during this upgrade. It appears that using systemctl cancel to kill the hanging password prompts to unlock unneeded partitions, and resume the upgrade, worked with no apparent ill effects. The upgraded F20 is perfectly healthy.

Comment 3 Anton Baklanov 2013-12-26 12:37:39 UTC
I have the same problem on my thinkpad with / and /home encrypted.

But yesterday I updated my PC from F19 to F20 without any issues. And it has / and /home encrypted too.

Comment 4 Will Woods 2014-01-17 20:14:03 UTC
The problem is very likely that the system is trying to unlock /home, but SELinux is preventing systemd-tty-ask-password-agent from reading the (saved) password you used to unlock /.

This only happens if / and /home are *separate* LUKS partitions. If they're the same LUKS volume it'll work fine.

Does it work if you add "enforcing=0" to the boot arguments?

Comment 5 Will Woods 2014-01-17 21:01:56 UTC
*** Bug 1046281 has been marked as a duplicate of this bug. ***

Comment 6 Anton Baklanov 2014-01-18 15:54:43 UTC
I have just updated my laptop without any issues after adding "enforcing=0" to boot arguments.

Comment 7 Will Woods 2014-01-23 23:50:11 UTC
*** Bug 1044761 has been marked as a duplicate of this bug. ***

Comment 8 H. Peter Anvin 2014-02-17 19:49:14 UTC
I can confirm both the problem and the workaround described in Comment 6.

Comment 9 Will Woods 2014-03-04 20:34:58 UTC
*** Bug 1044551 has been marked as a duplicate of this bug. ***

Comment 10 Laszlo Ersek 2014-12-27 02:55:46 UTC
"enforcing=0" works it around for me as well.

Please be sure to document this bug and the workaround in <https://fedoraproject.org/wiki/Common_F20_bugs#Upgrade_issues> -- Fedora 19 will reach end of life in less than two weeks, and likely many people will be triggered to upgrade. (I'm upgrading an F19 laptop in the family only because F19 is reaching EOL.)

FedUp version I'm using: fedup-0.9.1-1.fc19

Comment 11 Fedora End Of Life 2015-01-09 22:23:15 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2015-02-18 11:01:26 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.