kuhn
November 14th, 2008, 10:59 PM
Hello,
I am working on creating a custom ubuntu dvd based on 8.04 using a preseed file. Most stuff is working, however I want to have the install automatically create a normal (non-root) user account which it fails to do. I'd like to be able to do so without prompting for a username or password at install time.
From reading the instructions it seems this should be straightforward by using the following in the preseed file:
d-i passwd/make-user boolean true
d-i passwd/user-fullname string Video User
d-i passwd/username string viduser
d-i passwd/user-password password somepasswd
d-i passwd/user-password-again password somepasswd
However, when I run the installation the user has not been created. I tried looking for an error message of some sort in /var/log/installer/syslog, but I don't see anything that looks relevant.
When I look in the file /var/log/installer/cdebconf/questions.dat, I see that the value of passwd/username was set to "viduser", so the installer seems to get that information correctly. However, a search for the string "user-password" in this file (questions.dat) returns no results - so it's as though maybe the password info is not getting read or parsed correctly. I have double and triple checked that I spelled everything right, and used only a single space between fields in the preseed file.
Anybody have any ideas about this, or advice how to debug what is happening? Any info will be appreciated.
Regards,
Scott
I am working on creating a custom ubuntu dvd based on 8.04 using a preseed file. Most stuff is working, however I want to have the install automatically create a normal (non-root) user account which it fails to do. I'd like to be able to do so without prompting for a username or password at install time.
From reading the instructions it seems this should be straightforward by using the following in the preseed file:
d-i passwd/make-user boolean true
d-i passwd/user-fullname string Video User
d-i passwd/username string viduser
d-i passwd/user-password password somepasswd
d-i passwd/user-password-again password somepasswd
However, when I run the installation the user has not been created. I tried looking for an error message of some sort in /var/log/installer/syslog, but I don't see anything that looks relevant.
When I look in the file /var/log/installer/cdebconf/questions.dat, I see that the value of passwd/username was set to "viduser", so the installer seems to get that information correctly. However, a search for the string "user-password" in this file (questions.dat) returns no results - so it's as though maybe the password info is not getting read or parsed correctly. I have double and triple checked that I spelled everything right, and used only a single space between fields in the preseed file.
Anybody have any ideas about this, or advice how to debug what is happening? Any info will be appreciated.
Regards,
Scott