diff options
Diffstat (limited to 'backend/modules/install_configure')
| -rw-r--r-- | backend/modules/install_configure | 38 | 
1 files changed, 36 insertions, 2 deletions
| diff --git a/backend/modules/install_configure b/backend/modules/install_configure index ad5a543..c0eb95b 100644 --- a/backend/modules/install_configure +++ b/backend/modules/install_configure @@ -55,6 +55,14 @@ EOF  	rm -f $TARGET/tmp 2>/dev/null  	mkdir -p $TARGET/tmp  	chmod 1777 $TARGET/tmp +	 +	# create file to mount efivars (needed since bullseye) +	cat <<EOF >$TARGET/tmp/fixmount +#!/bin/sh +modprobe efivarfs +mount -t efivarfs efivarfs /sys/firmware/efi/efivars +EOF +	chmod ugo+x $TARGET/tmp/fixmount  	# create /etc/mtab as a regular file  	rm -f $TARGET/etc/mtab @@ -99,8 +107,15 @@ EOF  	[ -n "$KEYTABLE" ] && chroot_it install-keymap "$KEYTABLE" 2>/dev/null -        # remove live-repo from sources.list +        # remove live-repo from sources.list and delete key          sed -i -e '/^# Live Media$/{N;\|\ndeb file:/live/image/debian |{N;/\n$/d}}' $TARGET/etc/apt/sources.list +        sed -i -e '/^# Live Media$/{N;\|\ndeb file:/run/live/medium/debian |{N;/\n$/d}}' $TARGET/etc/apt/sources.list +        sed -i -e '/^# Live Media$/{N;\|\ndeb \[signed-by=\/usr\/share\/keyrings\/live-media.gpg\] file:/run/live/medium/debian |{N;/\n$/d}}' $TARGET/etc/apt/sources.list +        rm -f $TARGET/etc/apt/trusted.gpg.d/live-media.asc $TARGET/usr/share/keyrings/live-media.gpg +        # remove acritoxinstaller-qt4 repo +        sed -i '/[Aa]critoxinstaller-qt4/d' $TARGET/etc/apt/sources.list +        # remove double empty lines +        sed -i 'N;/^\n$/D;P;D;'g $TARGET/etc/apt/sources.list  }  # Synopsis: configure_target_purge_live_only_stuff @@ -115,6 +130,8 @@ function configure_target_purge_live_only_stuff()  			acritoxinstaller-icons \  			acritoxinstaller-kanotix \  			kanotix-enable-persistent-live \ +			calamares \ +			calamares-settings-kanotix \  			live-boot-initramfs-tools \  			live-boot \  			live-initramfs \ @@ -137,7 +154,12 @@ function configure_target_purge_live_only_stuff()  			zram	 	&> /dev/null  	# remove unused stuff -	chroot_it apt-get autoremove --purge --yes +	chroot_it apt-get autoremove --purge --yes	&> /dev/null +	 +	# execute above configured fix for efi (new since bullseye) +	if [ -d /sys/firmware/efi/efivars ]; then +	chroot_it /tmp/fixmount +	fi          # remove kde-config-touchpad if no touchpad is available          [ "$(su "$FLL_LIVE_USER" -c "qdbus org.kde.synaptiks /modules/synaptiks org.kde.Synaptiks.isTouchpadAvailable")" = true ] && \ @@ -160,10 +182,22 @@ function configure_target_purge_live_only_stuff()  	# remove kdm live shutdown hack  	rm -f "$TARGET/home/$cfg_username/.kde/shutdown/kdm-force-shutdown-hack" +	# remove with live-boot created powermanagementprofilesrc ,will be automatically recreated at plasma5 session-startup +	rm -f "$TARGET/home/$cfg_username/.config/powermanagementprofilesrc" +          # remove live-only hooks          rm -rf $TARGET/lib/live          rm -f $TARGET/etc/profile.d/zz-live.sh          rm -f $TARGET/usr/local/bin/enable_persistent_live.bash  	rm -f "$TARGET/home/$cfg_username/Desktop/enable_persistent.desktop" + +	#remove appimage desktop files +	if [ -e /run/live/medium/appimages ]; then +	for appimages in /run/live/medium/appimages/* +	do +	appimage=$(basename $appimages) +	rm -f "$TARGET/home/$cfg_username/Desktop/$appimage.desktop" +	done +	fi  } | 
