16be6d7ce0
As with the previous similar changes, this is intended to catch problems as they happen instead of ignoring them and continuing on to potentially fail later. Setting this on all existing scripts will allow us to enforce use via Jenkins. Change-Id: Iad2d490c86dceab148ea9ab08f457c49a5d5352e
22 lines
563 B
Bash
Executable File
22 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
# The base tbz-image created by kiwi does not contain an initrd so create one
|
|
# here.
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# To have access to FS_TYPE
|
|
_LIB="/tmp/opensuse-extras"
|
|
source $_LIB/img-defaults
|
|
|
|
# This is to tell mkinitrd to include the right tools for the root filesystem
|
|
# that will actually be used for the final image. This is likely something
|
|
# different than what the chroot is currently on (which might currently be a
|
|
# tmpfs even).
|
|
echo "rootfstype=$FS_TYPE" > /etc/sysconfig/initrd
|
|
|
|
mkinitrd -A
|
|
|
|
# And cleanup again
|
|
rm /etc/sysconfig/initrd
|