|
@@ -1324,7 +1324,12 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
|
|
|
chroot $TARGETDIR dracut --no-hostonly --add-drivers "ahci" --force >>$LOG 2>&1
|
|
|
INFOBOX "Removing temporary packages from target ..." 4 60
|
|
|
echo "Removing temporary packages from target ..." >$LOG
|
|
|
- xbps-remove -r $TARGETDIR -Ry dialog xtools-minimal xmirror >>$LOG 2>&1
|
|
|
+ TO_REMOVE="dialog xtools-minimal"
|
|
|
+ # only remove espeakup if it wasn't enabled in the live environment
|
|
|
+ if ! [ -e "/var/service/espeakup" ]; then
|
|
|
+ TO_REMOVE+=" espeakup"
|
|
|
+ fi
|
|
|
+ xbps-remove -r $TARGETDIR -Ry $TO_REMOVE >>$LOG 2>&1
|
|
|
rmdir $TARGETDIR/mnt/target
|
|
|
else
|
|
|
# mount required fs
|