MDM support for casper

Bug #1484844 reported by Rik Shaw
14
This bug affects 3 people
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/remastersys.conf and a password of <blank>, but this didn't work all the time for me (I think it is fairly reliable with lightdm, but we use mdm from LinuxMint, which would not accept the blank password and would stay "stuck" at the login screen).

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.

Tags: remastersys
Rik Shaw (rik-shaw)
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
Revision history for this message
Rik Shaw (rik-shaw) wrote :

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
    # Configure MDM autologin
    MDMConfFile=/root/etc/mdm/mdm.conf
    AutomaticLoginParameters="AutomaticLoginEnable=true\n\
AutomaticLogin=$USERNAME\n\
TimedLoginEnable=false"
    # Prevent from updating if parameters already present (persistent usb key)
    if ! $(grep -qs '^AutomaticLogin' $MDMConfFile); then
        sed -i "s/\[daemon\]/\[daemon\]\n$AutomaticLoginParameters/" \
            $MDMConfFile
    fi
fi

With that above addition, casper is "auto logging in" with MDM as the display manager.

summary: - casper 1.340.2 + trusty: with remastersys goes to login screen instead
- of direct to Live Session
+ MDM support for casper
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in casper (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.