grub-common: snapd autopkgtests fail on s390x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Invalid
|
Undecided
|
Unassigned | ||
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Probably regression from #1901553, failing to install on s390x, info below.
[Test plan]
Just ensure those tests don't fail like that
[Regression potential]
grub units only start when /boot is mounted now, as they require /boot/grub/grub.cfg to exist. Should be fine, but might not start if boot failed to mount for some reason.
[Original bug report]
Snapd autopkgtests depend on grub-common:
debian/
Depends: @builddeps@
debian/control:
Build-Depends:
...
grub-common,
...
but grub-common fails to install on s390x, consequently snapd autopkgtests fall apart on s390x.
Full log:
```
Setting up grub-common (2.04-1ubuntu45) ...
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Job for grub-initrd-
See "systemctl status grub-initrd-
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Job for grub-common.service failed because the control process exited with error code.
See "systemctl status grub-common.
invoke-rc.d: initscript grub-common, action "start" failed.
[0;1;31m●[0m grub-common.service - Record successful boot for GRUB
Loaded: loaded (]8;;file:
Active: [0;1;31mfailed[0m (Result: exit-code) since Thu 2021-04-22 08:06:10 UTC; 8ms ago
Process: 3111 ExecStartPre=
Process: 3114 ExecStart=
Process: 3115 ExecStartPost=
Main PID: 3114 (code=exited, status=1/FAILURE)
Apr 22 08:06:10 autopkgtest systemd[1]: Starting Record successful boot for GRUB...
Apr 22 08:06:10 autopkgtest grub-editenv[3114]: grub-editenv: error: cannot rename the file /boot/grub/
Apr 22 08:06:10 autopkgtest systemd[1]: [0;1;39m
Apr 22 08:06:10 autopkgtest systemd[1]: [0;1;38;
Apr 22 08:06:10 autopkgtest systemd[1]: [0;1;31m
dpkg: error processing package grub-common (--configure):
installed grub-common package post-installation script subprocess returned error exit status 1
```
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 368 lines (+323/-1)6 files modifieddebian/changelog (+30/-0)
debian/grub-common.service (+15/-0)
debian/patches/series (+2/-0)
debian/patches/ubuntu-add-initrd-less-boot-fallback.patch (+209/-0)
debian/patches/ubuntu-add-initrd-less-boot-messages.patch (+66/-0)
debian/rules (+1/-1)
- Dimitri John Ledkov: Pending requested
-
Diff: 176 lines (+110/-5)5 files modifieddebian/changelog (+22/-0)
debian/grub-common.service (+15/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu-add-initrd-less-boot-fallback.patch (+6/-5)
debian/patches/ubuntu-add-initrd-less-boot-messages.patch (+66/-0)
- Julian Andres Klode: Pending requested
- Ubuntu Core Development Team: Pending requested
-
Diff: 177 lines (+73/-10)7 files modifieddebian/changelog (+16/-0)
debian/grub-common.service (+4/-3)
debian/patches/0239-arm-linux-Fix-ARM-Linux-header-layout.patch (+29/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu-add-initrd-less-boot-fallback.patch (+6/-5)
debian/patches/ubuntu-add-initrd-less-boot-messages.patch (+15/-2)
debian/rules (+2/-0)
summary: |
- grub-common: snapd autopkgtest fails on s390x + grub-common: snapd autopkgtests fail on s390x |
affects: | grub (Ubuntu) → grub2 (Ubuntu) |
Changed in grub2 (Ubuntu): | |
status: | New → Triaged |
description: | updated |
Changed in grub2 (Ubuntu Focal): | |
milestone: | none → ubuntu-20.04.3 |
Changed in snapd: | |
status: | New → Invalid |
This bug was fixed in the package grub2 - 2.04-1ubuntu46
---------------
grub2 (2.04-1ubuntu46) impish; urgency=medium
* debian/ grub-common. service: change type to oneshot, add wantedby fallback. service: add wantedby sleep.target, after fallback. service, debian/ grub-common. service: only start
sleep.target, after sleep.target. The service will now start after
resume from hybernation. LP: #1929860
* grub-initrd-
sleep.target. The service will now start after resume from
hybernation. LP: #1929860
* cherrypick upstream fix to make armhf efi boot work. LP: #1788940
* debian/rules: disable LTO. LP: #1922005
* grub-initrd-
units when booted with grub. Use presence of /boot/grub/grub.cfg as
proxy. LP: #1925507
* tests: patch qemu command to use ide-hd instead of the removed
ide-drive.
-- Dimitri John Ledkov <email address hidden> Fri, 16 Jul 2021 14:01:31 +0100