Accepting request 758246 from home:favogt:branches:openSUSE:Factory:Live

- Add hack to remove LOADER_TYPE to fix upgrading (boo#1155545)

OBS-URL: https://build.opensuse.org/request/show/758246
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Images:openSUSE-Tumbleweed/livecd-openSUSE?expand=0&rev=64
This commit is contained in:
Fabian Vogt 2019-12-19 15:40:29 +00:00 committed by Git OBS Bridge
parent 5391cad12b
commit ea0ba1b0c8
2 changed files with 24 additions and 1 deletions

View File

@ -43,7 +43,7 @@ for i in sshd cron wicked purge-kernels; do
systemctl -f disable $i
done
echo '# multipath needs to be excluded from dracut as it breaks os-proper' > /etc/dracut.conf.d/no-multipath.conf
echo '# multipath needs to be excluded from dracut as it breaks os-prober' > /etc/dracut.conf.d/no-multipath.conf
echo 'omit_dracutmodules+=" multipath "' >> /etc/dracut.conf.d/no-multipath.conf
cd /
@ -158,3 +158,21 @@ rm -rf /var/cache/zypp/* /var/lib/zypp/AnonymousUniqueId /var/lib/systemd/random
# Remove netronome firmware (part of kernel-firmware): this sums up to 125MB
rm -rf /lib/firmware/netronome/
cat >/etc/systemd/system/fixupbootloader.service <<EOF
# boo#1155545 - LOADER_TYPE has to be nil for the upgrade to work properly.
# Kiwi does not allow changing the file directly, so do it in this ugly way.
[Unit]
Description=Remove LOADER_TYPE from /etc/sysconfig/bootloader
Before=systemd-user-sessions.service
[Service]
Type=oneshot
ExecStart=/usr/bin/gawk -i inplace '!/^LOADER_TYPE=/' /etc/sysconfig/bootloader
[Install]
WantedBy=multi-user.target
EOF
systemctl -f enable fixupbootloader.service

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 19 15:14:46 UTC 2019 - Fabian Vogt <fvogt@suse.com>
- Add hack to remove LOADER_TYPE to fix upgrading (boo#1155545)
-------------------------------------------------------------------
Mon Nov 11 09:01:22 UTC 2019 - Fabian Vogt <fvogt@suse.com>