makedist.inc.sh: remove obsolete operations

This commit is contained in:
2025-11-07 11:14:57 +01:00
parent ac93c1dfdf
commit dc3fda4b39

View File

@@ -161,8 +161,7 @@ fi
#
if [ ! "$MULTILANGUAGE" ]; then
echo "Deleting other languages l10n files..."
for d in /usr/share/locale /opt/kde/share/locale \
/opt/kde/share/locale/l10n /opt/kde3/share/locale; do
for d in /usr/share/locale; do
find ${MOUNTDIR}${d} -maxdepth 1 -mindepth 1 -type d \
! -name ${LANGUAGE}* ! -name en* ! -name C ! -name l10n -exec rm -rf {} \; 2>/dev/null
done
@@ -174,14 +173,6 @@ echo "Copying u-boot Image for Kernel"
# -n "$DISTRONAME 2.6" -d $MOUNTDIR/boot/vmlinuz-2.6.12 $DISTRONAME-$MAKEDIST_TARGET-uImage.bin
fi
# disable parport
#sed -i "/parport_pc/d" $MOUNTDIR/etc/modprobe.conf
# disable multithreaded init ?
if [ ${MULTITHREAD:-0} -gt 0 ]; then
sed -i "s|multithread=1|multithread=0|" $MOUNTDIR/etc/sysconfig/rc
fi
# set rootdev on extlinux
[ -e $MOUNTDIR/boot/extlinux.conf ] && sed -i "s|\([^::alpha]root=\)[^ ]*|\1$ROOTDEV|" $MOUNTDIR/boot/extlinux.conf
@@ -216,7 +207,6 @@ if [ "$SMART_CHANNELS_ENABLE" != "" ]; then
for r in $SMART_CHANNELS_ENABLE; do
chroot $MOUNTDIR dnf config-manager --enable $r
done
echo "$SMART_CHANNELS_ENABLE" > $MOUNTDIR/etc/smart/openmamba-install-enabled-channels
fi
if [ ! "$KERNEL_IGNORE" ]; then