diff options
| author | Marco Amadori <amadorim@vdavda.com> | 2008-09-02 10:42:11 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:02 +0100 |
| commit | 2910ae281a07441f55215ca74ec38f1d499420f2 (patch) | |
| tree | e4caef960a7e770fe9ae0078ef3962f1264bd11c /scripts/live-bottom/30accessibility | |
| parent | c8143167a7af7f3ff8c138f52c4ac637fd6c9312 (diff) | |
| download | live-boot-2910ae281a07441f55215ca74ec38f1d499420f2.tar.gz live-boot-2910ae281a07441f55215ca74ec38f1d499420f2.zip | |
Fix default user handling.
* Handle the case in which an user is present but the default user could not
be created (e.g. when configuring another user at build time in the
chroot). If the default user could not be created or assigned, disable
autologins (which previously just fails leaving without console login
capabilities), and propagate that information to the scripts thinking that a
default user will always be available.
Note for live-helper documentation: The latter case could leave the system
accessible only if root password is set in other ways or via ssh rsa/dsa
passwordless accesses.
Diffstat (limited to 'scripts/live-bottom/30accessibility')
| -rwxr-xr-x | scripts/live-bottom/30accessibility | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility index 7753154..a169342 100755 --- a/scripts/live-bottom/30accessibility +++ b/scripts/live-bottom/30accessibility @@ -27,6 +27,12 @@ fi . /scripts/live-functions +if [ -z "${USERNAME}" ] +then + echo "No default user for accessibility options." + exit 0 +fi + log_begin_msg "Configuring accessibility options" # live-initramfs script |
