Comment 43 for bug 1892369

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

focal verification done; all good.

$ lxc launch ubuntu:focal casper
$ lxc shell casper

# echo 'deb http://archive.ubuntu.com/ubuntu focal-proposed main' >/etc/apt/sources.list.d/proposed.list
# apt-cache madison casper | grep proposed
    casper | 1.445.3 | http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
# apt install --yes casper
# dpkg -s casper | grep ^Version:
Version: 1.445.3
# su - ubuntu

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 (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