[Bug 1892369] Re: Impossible to skip integrity test for ubuntu-server 20.04.1 iso
Mauricio Faria de Oliveira
1892369 at bugs.launchpad.net
Sat Aug 27 23:31:07 UTC 2022
Test package results on focal: all good.
$ lsb_release -cs
focal
Before:
------
$ sudo apt install --yes casper # focal-proposed
$ dpkg -s casper | grep Version:
Version: 1.445.2
1) Without fsck.mode=skip: check occurs (OK)
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/nvme--vg-root ro quiet splash mitigations=off vt.handoff=7
$ sudo /usr/lib/casper/casper-md5check /tmp /dev/zero
.
Checking integrity, this may take some time
^C
2) With fsck.mode=skip last: check occurs (WRONG!)
$ echo "$(cat /proc/cmdline) fsck.mode=skip" >/tmp/cmdline
$ sudo mount --bind /tmp/cmdline /proc/cmdline
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/nvme--vg-root ro quiet splash mitigations=off vt.handoff=7 fsck.mode=skip
$ sudo /usr/lib/casper/casper-md5check /tmp /dev/zero
.
Checking integrity, this may take some time
^C
$ sudo umount /proc/cmdline
3) With fsck.mode=skip before last: check skipped (OK; workaround available)
$ echo "$(cat /proc/cmdline) fsck.mode=skip workaround" >/tmp/cmdline
$ sudo mount --bind /tmp/cmdline /proc/cmdline
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/nvme--vg-root ro quiet splash mitigations=off vt.handoff=7 fsck.mode=skip workaround
$ sudo /usr/lib/casper/casper-md5check /tmp /dev/zero
.
Check skipped.
^C
$ sudo umount /proc/cmdline
After:
-----
$ sudo dpkg -i casper_1.445.3_amd64.deb
$ dpkg -s casper | grep Version:
Version: 1.445.3
1) Without fsck.mode=skip: check occurs (OK), and hint is provided
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/nvme--vg-root ro quiet splash mitigations=off vt.handoff=7
$ sudo /usr/lib/casper/casper-md5check /tmp /dev/zero
.
Checking integrity, this may take some time (or try: fsck.mode=skip)
^C
2) With fsck.mode=skip last: check skipped (OK; FIXED!)
$ echo "$(cat /proc/cmdline) fsck.mode=skip" >/tmp/cmdline
$ sudo mount --bind /tmp/cmdline /proc/cmdline
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/nvme--vg-root ro quiet splash mitigations=off vt.handoff=7 fsck.mode=skip
$ sudo /usr/lib/casper/casper-md5check /tmp /dev/zero
.
Check skipped.
^C
$ sudo umount /proc/cmdline
3) With fsck.mode=skip before last: check skipped (OK; no regression)
$ echo "$(cat /proc/cmdline) fsck.mode=skip workaround" >/tmp/cmdline
$ sudo mount --bind /tmp/cmdline /proc/cmdline
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/nvme--vg-root ro quiet splash mitigations=off vt.handoff=7 fsck.mode=skip workaround
$ sudo /usr/lib/casper/casper-md5check /tmp /dev/zero
.
Check skipped.
^C
$ sudo umount /proc/cmdline
** Description changed:
+ [Impact]
+
+ * Users cannot trivially skip the media integrity test in
+ the 20.04.x installer, as ctrl-c is no longer available
+ and the option 'fsck.mode=skip' is NOT honored if it is
+ last in cmdline (which is usually the case for humans).
+
+ * The impact is more severe on physical server installs,
+ where usually the speed of _virtual_ optical media w/
+ the BMC is really slow; impacting field/data center ops.
+
+ [Test Plan]
+
+ * Run casper in a container/guest with fake /proc/cmdline
+ in 3 modes for 'fsck.mode=skip': (steps in comment #39).
+
+ 1) not present
+ 2) present, last option
+ 3) present, not last option
+
+ [Where problems could occur]
+
+ * The patch is restricted to the option parsing in casper,
+ so regressions would likely manifest as errors parsing
+ kernel cmdline options or crashing casper (systemd unit).
+
+ * The patch has been in Jammy/22.04 from the daily builds.
+
+ [Original Description]
+
It is not possible to skip the integrity test with the iso available at
http://www.releases.ubuntu.com/20.04/ubuntu-20.04.1-live-server-
amd64.iso .
Bellow is a screenshot of me hitting CTRL+C to try to cancel it, without success:
https://ibb.co/vwvtXmn
Checking integrity can be extremely slow when mounting an image via
virtual CD tools from Dell idrac. I didn't measure it precisely but it
takes more than 30 minutes.
Since the image is on a remote location and was already checked, this is
completely useless.
** Description changed:
[Impact]
- * Users cannot trivially skip the media integrity test in
- the 20.04.x installer, as ctrl-c is no longer available
- and the option 'fsck.mode=skip' is NOT honored if it is
- last in cmdline (which is usually the case for humans).
+ * Users cannot trivially skip the media integrity test in
+ the 20.04.x installer, as ctrl-c is no longer available
+ and the option 'fsck.mode=skip' is NOT honored if it is
+ last in cmdline (which is usually the case for humans).
- * The impact is more severe on physical server installs,
- where usually the speed of _virtual_ optical media w/
- the BMC is really slow; impacting field/data center ops.
+ * The impact is more severe on physical server installs,
+ where usually the speed of _virtual_ optical media w/
+ the BMC is really slow; impacting field/data center ops.
[Test Plan]
- * Run casper in a container/guest with fake /proc/cmdline
- in 3 modes for 'fsck.mode=skip': (steps in comment #39).
+ * Run casper in a container/guest with fake /proc/cmdline
+ in 3 modes for 'fsck.mode=skip': (steps in comment #39).
- 1) not present
- 2) present, last option
- 3) present, not last option
-
+ 1) not present
+ 2) present, last option
+ 3) present, not last option
+
+ * Test the options with 20.04.5 release candidate images.
+
[Where problems could occur]
- * The patch is restricted to the option parsing in casper,
- so regressions would likely manifest as errors parsing
- kernel cmdline options or crashing casper (systemd unit).
-
- * The patch has been in Jammy/22.04 from the daily builds.
+ * The patch is restricted to the option parsing in casper,
+ so regressions would likely manifest as errors parsing
+ kernel cmdline options or crashing casper (systemd unit).
+
+ * The patch has been in Jammy/22.04 from the daily builds.
[Original Description]
It is not possible to skip the integrity test with the iso available at
http://www.releases.ubuntu.com/20.04/ubuntu-20.04.1-live-server-
amd64.iso .
Bellow is a screenshot of me hitting CTRL+C to try to cancel it, without success:
https://ibb.co/vwvtXmn
Checking integrity can be extremely slow when mounting an image via
virtual CD tools from Dell idrac. I didn't measure it precisely but it
takes more than 30 minutes.
Since the image is on a remote location and was already checked, this is
completely useless.
** Also affects: casper (Ubuntu Focal)
Importance: Undecided
Status: New
** Changed in: casper (Ubuntu Focal)
Status: New => In Progress
** Changed in: casper (Ubuntu Focal)
Importance: Undecided => Medium
** Changed in: casper (Ubuntu Focal)
Assignee: (unassigned) => Mauricio Faria de Oliveira (mfo)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1892369
Title:
Impossible to skip integrity test for ubuntu-server 20.04.1 iso
Status in subiquity:
New
Status in Release Notes for Ubuntu:
New
Status in casper package in Ubuntu:
Fix Released
Status in casper source package in Focal:
In Progress
Status in casper source package in Jammy:
Fix Released
Bug description:
[Impact]
* Users cannot trivially skip the media integrity test in
the 20.04.x installer, as ctrl-c is no longer available
and the option 'fsck.mode=skip' is NOT honored if it is
last in cmdline (which is usually the case for humans).
* The impact is more severe on physical server installs,
where usually the speed of _virtual_ optical media w/
the BMC is really slow; impacting field/data center ops.
[Test Plan]
* Run casper in a container/guest with fake /proc/cmdline
in 3 modes for 'fsck.mode=skip': (steps in comment #39).
1) not present
2) present, last option
3) present, not last option
* Test the options with 20.04.5 release candidate images.
[Where problems could occur]
* The patch is restricted to the option parsing in casper,
so regressions would likely manifest as errors parsing
kernel cmdline options or crashing casper (systemd unit).
* The patch has been in Jammy/22.04 from the daily builds.
[Original Description]
It is not possible to skip the integrity test with the iso available
at http://www.releases.ubuntu.com/20.04/ubuntu-20.04.1-live-server-
amd64.iso .
Bellow is a screenshot of me hitting CTRL+C to try to cancel it, without success:
https://ibb.co/vwvtXmn
Checking integrity can be extremely slow when mounting an image via
virtual CD tools from Dell idrac. I didn't measure it precisely but it
takes more than 30 minutes.
Since the image is on a remote location and was already checked, this
is completely useless.
To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/1892369/+subscriptions
More information about the foundations-bugs
mailing list