** Changed in: clevis (Ubuntu Focal)
       Status: Triaged => In Progress

** Changed in: clevis (Ubuntu Focal)
     Assignee: (unassigned) => dann frazier (dannf)

** Description changed:

- Hi,
+ [Impact]
+ The original report shows a scenario where clevis fails to bring up 
networking in the initramfs, resulting in a failure to automatically unlock a 
LUKS volume using a tang server. While it isn't clear how the problem manifests 
(see Comment #2), it is clear from the user's description of a workaround that 
the fix for bug 1896289. should also fix this issue as a side-effect. Without 
truly understanding the root cause I'd normally not propose this for an SRU, 
but here we're getting it "for free".
  
- in 
- /usr/share/initramfs-tools/scripts/local-top/clevis
+ [Fix]
+ The issue is with how the function clevis_all_netbootable_devices() generates 
a list of devices. It uses a `DEVICE="$DEVICE $device"` pattern, which causes 
the first device to be prefixed with a space. The fix for bug 1896289 happened 
to get rid of that space character in order to fix a cosmetic issue when 
printing a warning:
+  
https://github.com/latchset/clevis/commit/ae3249ed5ff102aa57650c3171330c47a41c95e8
  
- I have to fix eth_check()
- from 
- ip link set dev "$device" up
- to
- ip link set dev $device up
+ [Test Case]
+ Confirm that automatic unlocking using a tang server works.
  
- to avoid error 
- Error: argument " enp2s0" is wrong: "dev" not a valid ifname
- 
- 
- regards
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 20.04
- Package: clevis-initramfs 12-1ubuntu2 [modified: 
usr/share/initramfs-tools/scripts/local-top/clevis]
- ProcVersionSignature: Ubuntu 5.4.0-24.28-generic 5.4.30
- Uname: Linux 5.4.0-24-generic x86_64
- ApportVersion: 2.20.11-0ubuntu27
- Architecture: amd64
- CasperMD5CheckResult: skip
- CurrentDesktop: KDE
- Date: Sat Apr 18 21:20:22 2020
- InstallationDate: Installed on 2020-04-18 (0 days ago)
- InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
- PackageArchitecture: all
- SourcePackage: clevis
- UpgradeStatus: No upgrade log present (probably fresh install)
+ [Regression Potential]
+ A coding error here could break auto-unlocking of a LUKs root device, 
requiring the user to manually enter a passphrase on the console.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1873593

Title:
  clevis-initramfs no ethernet because of Error: argument " enp2s0" is
  wrong: "dev" not a valid ifname

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clevis/+bug/1873593/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to