forked from pool/livecd-openSUSE
Accepting request 876731 from Virtualization:Appliances:Images:openSUSE-Tumbleweed
OBS-URL: https://build.opensuse.org/request/show/876731 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/livecd-openSUSE?expand=0&rev=141
This commit is contained in:
commit
93c0bd77ce
15
config.sh
15
config.sh
@ -16,9 +16,6 @@ test -f /.profile && . /.profile
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
exec | tee /var/log/config.log
|
||||
exec 2>&1
|
||||
|
||||
pl=$(rpmqpack | grep release-livecd-)
|
||||
|
||||
# Get the flavor from the installed (openSUSE|Leap)-release-livecd- RPM
|
||||
@ -53,6 +50,15 @@ done
|
||||
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
|
||||
|
||||
if [ "$desktop" = "x11" ]; then
|
||||
# Forcibly exclude networking support
|
||||
sed -i 's/echo network rootfs-block/echo rootfs-block/' /usr/lib/dracut/modules.d/90kiwi-live/module-setup.sh
|
||||
echo 'omit_dracutmodules+=" network "' >> /etc/dracut.conf.d/no-network.conf
|
||||
|
||||
# Work around https://github.com/OSInside/kiwi/issues/1751
|
||||
sed -i '/omit_dracutmodules=/d' /usr/bin/dracut
|
||||
fi
|
||||
|
||||
cd /
|
||||
|
||||
# Import keys for installation
|
||||
@ -80,6 +86,9 @@ rm -rf /usr/share/doc/packages/*
|
||||
# Save more than 200 MiB by removing this, not very useful for lives
|
||||
rm -rf /lib/firmware/{liquidio,netronome,qed,mrvl,mellanox,qcom,cypress}
|
||||
|
||||
# Not needed, boo#1166406
|
||||
rm /boot/vmlinux*.[gx]z
|
||||
|
||||
# Add repos from /etc/YaST2/control.xml
|
||||
add-yast-repos
|
||||
zypper --non-interactive rm -u live-add-yast-repos
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 4 11:18:15 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
- More size reduction:
|
||||
* Drop unneeded kernel binary
|
||||
* Stop writing /var/log/config.log
|
||||
* Exclude networking from the initrd
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 23 10:52:12 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user