summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive-install10
1 files changed, 6 insertions, 4 deletions
diff --git a/draklive-install b/draklive-install
index a087c66..2c31ea4 100755
--- a/draklive-install
+++ b/draklive-install
@@ -12,6 +12,8 @@ use common;
push @::textdomains, 'draklive-install';
+my $live_user = "guest";
+
{
use diskdrake::interactive;
package diskdrake::interactive;
@@ -133,8 +135,8 @@ undef $wait;
#- remove unwanted files and packages
unlink(map { $::prefix . $_ } '/.autofsck',
'/etc/modprobe.d/mandriva-live',
- '/home/guest/Desktop/draklive-copy-wizard.desktop',
- '/home/guest/Desktop/draklive-install.desktop');
+ '/home/' . $live_user . '/Desktop/draklive-copy-wizard.desktop',
+ '/home/' . $live_user . '/Desktop/draklive-install.desktop');
system('chroot', $::prefix, 'rpm', '-e', 'draklive-install');
#- enable first boot wizard at system boot
@@ -149,14 +151,14 @@ TIMEZONE=no
NETWORK=yes
AUTHENTICATION=yes
USERS=yes
-USER_RENAME_FROM=guest
+USER_RENAME_FROM=$live_user
GLX=no
));
#- allow mdkonline to be started again
unlink('/etc/skel/.MdkOnline/mdkonline', glob('/home/*/.MdkOnline/mdkonline'));
-#- unselect guest user in kdm
+#- unselect live user in kdm
my $kdm_cfg = '/etc/kde/kdm/kdmrc';
update_gnomekderc($::prefix . $kdm_cfg,
'X-:0-Greeter' => (PreselectUser => 'None', DefaultUser => '')) if -f $kdm_cfg;