MDM support for casper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I use remastersys (yes I know it isn't supported anymore, but it still works fine with 14.04 trusty) to make custom ISOs.
Last week after doing a "dist-upgrade" and then running remastersys, the resulting ISOs, would go to a login screen when starting the Live Session instead of booting all the way to the Live Session desktop.
I have done this process many times for Ubuntu 14.04, and never had this problem, even though a google search will show several others in the past have had this issue. You can get around the login screen by using the remastersys ID from /etc/remastersy
After a lot of trial and error in trying to isolate what changed, I have found that casper 1.340.2 is the source of the problem. If I "hold" casper at 1.340 like this:
apt-mark hold casper ubiquity-casper
After applying this command to my test machine, and then doing a dist-upgrade, and then running remastersys, the resulting ISOs boot correctly to the Live Session desktop.
If, however, casper updates to 1.340.2, the resulting ISOs will go to the login screen and get stuck.
I have attempted to scan the changes to casper and am not able to understand what is causing the problem, but it definitely is something to do with casper 1.340.2.
summary: |
- casper 1.340.2: with remastersys goes to login screen instead of direct - to Live Session + casper 1.340.2 + trusty: with remastersys goes to login screen instead + of direct to Live Session |
UPDATE: As I learn more I have found that casper 1.340.2 is working fine, but that there is no support for mdm, the login manager for Linux Mint. Here is a patch to add that will make it work:
/usr/share/ initramfs- tools/scripts/ casper- bottom/ 15autologin:
Add in a MDM section like below:
if [ -f /root/etc/ mdm/mdm. conf ]; then =/root/ etc/mdm/ mdm.conf ginParameters= "AutomaticLogin Enable= true\n\ $USERNAME\ n\ e=false" ]/\[daemon\ ]\n$AutomaticLo ginParameters/ " \
$MDMConfFi le
# Configure MDM autologin
MDMConfFile
AutomaticLo
AutomaticLogin=
TimedLoginEnabl
# Prevent from updating if parameters already present (persistent usb key)
if ! $(grep -qs '^AutomaticLogin' $MDMConfFile); then
sed -i "s/\[daemon\
fi
fi
With that above addition, casper is "auto logging in" with MDM as the display manager.