[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#664976: debian-edu-config: installer hang during debian-edu-profile run at the end



[Petter Reinholdtsen]
> I was told on IRC by the bug reporter, bammes, that his installation
> worked when he did not use characters like * and # in the password.
> This made me check the code to see if the root and first user
> password are properly quoted in the source.  The attached patch fix
> a few missing quotes.  The patch is untested, because I lack my test
> bench here.

I've commited this patch with updates, but there is one problematic
part of the code left.  This code in
debian-edu-config/share/debian-edu-config/d-i/pre-pkgsel:

        cat > $file <<EOF
debian-edu-config debian-edu-config/kdc-password password $ROOTPWD
debian-edu-config debian-edu-config/kdc-password-again password $ROOTPWD
debian-edu-config debian-edu-config/ldap-password password $ROOTPWD
debian-edu-config debian-edu-config/ldap-password-again password $ROOTPWD
debian-edu-config debian-edu-config/first-user-name string $FIRSTUSERNAME
debian-edu-config debian-edu-config/first-user-fullname string $FIRSTUSERGECOS
debian-edu-config debian-edu-config/first-user-password password $FIRSTUSERPWD
EOF
        # Pass user and password information into the target
        cat $file | LANG=C chroot /target debconf-set-selections || \
            error "Failed to load preseed values from $file."
        rm $file

The problem is with '#' in the password and debconf-set-selections.
debconf-set-selections will stop processing when it find a #, causing

  debian-edu-config debian-edu-config/first-user-password password #secret

to be read like

  debian-edu-config debian-edu-config/first-user-password password 

This in turn make the code setting up the first user pick the root
passoword as the first users password because no password were
provided.  If the root password contain #, the resulting password
might be empty (I am not sure, have not tested).  Neither is good. :)

But I am unable to find a way to quote # in passwords that
debconf-set-selections. will accept.  Anyone got any ideas?
-- 
Happy hacking
Petter Reinholdtsen



Reply to: