Unverified Commit e7023c33 authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Suppress boot error if kernel modules are absent

Prevent loading paralel printer port drivers which we don't need here
parent 76210eaa
...@@ -483,6 +483,13 @@ function configure_desktop () ...@@ -483,6 +483,13 @@ function configure_desktop ()
usermod -aG ${additionalgroup} ${CHOSEN_USER} 2>/dev/null usermod -aG ${additionalgroup} ${CHOSEN_USER} 2>/dev/null
done done
# Prevent loading paralel printer port drivers which we don't need here.Suppress boot error if kernel modules are absent
if [[ -f /etc/modules-load.d/cups-filters.conf ]]; then
sed "s/^lp/#lp/" -i /etc/default/console-setup
sed "s/^ppdev/#ppdev/" -i /etc/default/console-setup
sed "s/^parport_pc/#parport_pc/" -i /etc/default/console-setup
fi
# fix for gksu in Xenial # fix for gksu in Xenial
touch /home/${CHOSEN_USER}/.Xauthority touch /home/${CHOSEN_USER}/.Xauthority
cp -R /etc/skel/. /home/${CHOSEN_USER} cp -R /etc/skel/. /home/${CHOSEN_USER}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment