Go to file
Javier Martinez Canillas 5229fe4f01 - fix /tmp being deleted when kernel-core is installed in a container (#1726286)
The kernel-install script created unconditionally a $BOOT_DIR_ABS directory
that was used by the sd-boot bootloader. The kernel-install plugins checked
the existence of that directory to decide whether the BLS snippets would be
created in the path expected by sd-boot or the one expected by zipl.

But the $BOOT_DIR_ABS contains the machine ID that's set in the environment
variable $KERNEL_INSTALL_MACHINE_ID. If there's no machine ID set, then the
$BOOT_DIR_ABS is set to a temporary directory that's removed after all the
kernel-install plugins exit.

The $KERNEL_INSTALL_MACHINE_ID isn't set for example when kernel-install is
executed in a container since there won't be an /etc/machine-id file. This
causes 20-zipl-kernel.install script to wrongly remove the /tmp directory.

So if $KERNEL_INSTALL_MACHINE_ID isn't set, just exit the script since the
BLS snippets can't be installed anyways since their filename also contain
the machine ID.

Also, don't attempt to remove $BOOT_DIR_ABS because kernel-install doesn't
create this directory anymore and instead is created only when sd-boot is
installed.
2019-07-02 17:05:48 +02:00
.gitignore - rebased to 2.9.0 2019-05-22 08:27:50 -04:00
20-zipl-kernel.install - fix /tmp being deleted when kernel-core is installed in a container (#1726286) 2019-07-02 17:05:48 +02:00
52-zipl-rescue.install Fix kernel-install scripts issues (#1634803) 2018-10-01 19:19:00 +02:00
91-zipl.install Fix kernel-install scripts issues (#1634803) 2018-10-01 19:19:00 +02:00
ccw.udev updated ccw udev rules 2011-04-27 10:41:28 +02:00
ccw_init include fixed ccw_init and updated device_cio_free 2012-04-10 12:02:49 +02:00
dasd.udev Revert "Retire s390utils." 2011-03-09 18:23:34 +01:00
dasdconf.sh Revert "Retire s390utils." 2011-03-09 18:23:34 +01:00
device_cio_free - update device_cio_free script 2014-10-09 15:34:45 +02:00
device_cio_free.service - drop redundant systemd services installation 2018-09-21 04:55:00 -04:00
normalize_dasd_arg improve DASD parameters handling in normalize_dasd_arg (#824807) 2012-05-25 09:04:27 +02:00
s390-tools-zipl-blscfg-rpm-nvr-sort.patch - rebased to 2.9.0 2019-05-22 08:27:50 -04:00
s390-tools-zipl-invert-script-options.patch - add BLS support to zipl and add kernel-install scripts to create BLS files 2018-05-30 14:50:30 +02:00
s390utils.spec Rebuild for RPM 4.15 2019-06-11 17:22:19 +02:00
sources - rebased to 2.9.0 2019-05-22 08:27:50 -04:00
zfcp.udev - drop the libzfcphbaapi subpackage as it is moved to its own package (#963670) 2013-05-24 10:57:23 +02:00
zfcpconf.sh - remove bashism from zfcpconf.sh 2015-04-07 14:04:00 +02:00