Closed cpaelzer closed 2 years ago
Just FYI - in two different systems the upgrade worked. There the symlinks are updated AND zipl.conf is modified.
ubuntu@xenial-ua-scsi:~$ uname -a
Linux xenial-ua-scsi 4.4.0-1002-fips #2-Ubuntu SMP Thu Apr 27 19:35:14 UTC 2017 s390x s390x s390x GNU/Linux
ubuntu@xenial-ua-scsi:~$ cat /etc/zipl.conf
# This has been modified by the cloud image build process
[defaultboot]
default=ubuntu
[ubuntu]
target = /boot
image = /boot/vmlinuz
ramdisk = /boot/initrd.img
#parameters = root=LABEL=manual-rootfs
parameters = root=LABEL=manual-rootfs fips=1
ubuntu@xenial-ua-scsi:~$ ll /boot/
total 37360
drwxr-xr-x 3 root root 4096 Apr 29 07:22 ./
drwxr-xr-x 22 root root 4096 Apr 29 07:35 ../
-rw-r--r-- 1 root root 537007 Apr 27 2017 abi-4.4.0-1002-fips
-rw------- 1 root root 13824 Apr 29 07:22 bootmap
-rw-r--r-- 1 root root 65307 Apr 27 2017 config-4.4.0-1002-fips
-rw-r--r-- 1 root root 65666 Apr 16 10:07 config-4.4.0-210-generic
drwxr-xr-x 2 root root 4096 Apr 29 07:22 grub/
lrwxrwxrwx 1 root root 26 Apr 29 07:21 initrd.img -> initrd.img-4.4.0-1002-fips
-rw-r--r-- 1 root root 12502226 Apr 29 07:22 initrd.img-4.4.0-1002-fips
-rw-r--r-- 1 root root 12194648 Apr 29 07:22 initrd.img-4.4.0-210-generic
lrwxrwxrwx 1 root root 28 Apr 22 22:47 initrd.img.old -> initrd.img-4.4.0-210-generic
-rw------- 1 root root 2567485 Apr 27 2017 System.map-4.4.0-1002-fips
-rw------- 1 root root 2588452 Apr 16 10:07 System.map-4.4.0-210-generic
lrwxrwxrwx 1 root root 23 Apr 29 07:21 vmlinuz -> vmlinuz-4.4.0-1002-fips
-rw------- 1 root root 3789968 Apr 27 2017 vmlinuz-4.4.0-1002-fips
-r-------- 1 root root 160 Apr 27 2017 .vmlinuz-4.4.0-1002-fips.hmac
-rw------- 1 root root 3891432 Apr 16 10:07 vmlinuz-4.4.0-210-generic
lrwxrwxrwx 1 root root 25 Apr 22 22:47 vmlinuz.old -> vmlinuz-4.4.0-210-generic
So maybe all this fix will be about is detecting custom setups (like my error case zipl menu) and gracefully telling the user that UA couldn't set it up due to custom config and that the user has to configure the bootlader himself to enable kernel /boot/...
Tracking in SC-635
Re-tried - it really only breaks on custom configs which isn't UAs fault. Please close this.
But it seems the fips kernel on s390x is not booting (at least on my xenial test).
Hi, on my nonx86 tests I've had many systems not come back up at all (other to be debugged problem), but the one that did come up again has not booted into the FIPS kernel.
Enabling went fine
Packages are installed
Kernel is present:
But my zipl boot menu is unchanged:
And since the update neither modified zipl.conf NOR did overwrite the kernel/initrd symlinks
I'm still booted into a non-fips kernel