summaryrefslogtreecommitdiffstats
path: root/kernel
Commit message (Collapse)AuthorAgeFilesLines
* remove some more scsi driversPascal Rigaux2003-01-021-0/+1
|
* add floppy.o for all boot disks, don't have some 3c isa cards to fit network.imgPascal Rigaux2002-12-051-1/+4
|
* fixed too many modules removed (but untested if still buildable, pixel can doFrancois Pons2002-11-251-6/+6
| | | | | the changes now or gégé ?).
* revert.Francois Pons2002-11-251-1/+1
|
* added adiusbadsl (for supporting Sagem USB ADSL modem).Francois Pons2002-11-251-7/+13
|
* add new drivers that appears in alsa cvsThierry Vignaud2002-10-281-3/+3
|
* add nvaudio driver for lord fredlThierry Vignaud2002-10-211-1/+1
|
* fealnxGuillaume Cottenceau2002-09-252-0/+2
|
* - added orinoco_cs in pcmciaDamien Chaumette2002-09-131-1/+1
|
* fake support the firewire in stage1 (as if it were usb ;p)Guillaume Cottenceau2002-09-052-3/+4
|
* add r8169Pascal Rigaux2002-08-292-2/+2
|
* add new sound driverThierry Vignaud2002-08-291-1/+1
|
* add nvnet module in listDamien Chaumette2002-08-221-1/+1
|
* leave btaudio in other, not in soundThierry Vignaud2002-08-211-1/+1
|
* add firewire controller configurationPascal Rigaux2002-08-201-0/+1
|
* skip tg3 on stage1 (no room for it)Pascal Rigaux2002-08-201-0/+1
|
* - add missing oss modulesThierry Vignaud2002-08-191-3/+4
| | | | | - pas16 is a scsi driver, not a sound one ...
* add btaudioThierry Vignaud2002-08-191-3/+3
|
* add isa alsa driversThierry Vignaud2002-08-191-0/+2
|
* s/nd-sgalaxy/snd-sgalaxy/Thierry Vignaud2002-08-191-1/+1
|
* add :Thierry Vignaud2002-08-181-5/+5
| | | | | | | - network: tg3 - isdn: hisax_fcpcipnp, tpam - sound: snd-ali5451, snd-hdsp
* more sound modulesThierry Vignaud2002-08-161-8/+8
|
* new tv driverThierry Vignaud2002-08-161-1/+1
|
* add ov518_decomp in multimedia/tvPascal Rigaux2002-08-061-1/+1
|
* Exclude some modules (e100, aic7xxx) on x86_64 for now.Gwenolé Beauchesne2002-07-311-2/+3
|
* fix error messagePascal Rigaux2002-07-311-1/+1
|
* reorder modules to have most used modules at the beginning of the mar'sPascal Rigaux2002-07-252-9/+9
|
* have all useful modules for stage1 on all.rdz (=> bigger than 2.88M)Pascal Rigaux2002-07-231-1/+3
|
* don't have iph5526 on stage1 (no room)Pascal Rigaux2002-07-221-0/+1
|
* add iph5526 network module (fibre channel)Pascal Rigaux2002-07-221-0/+2
|
* ustable modules not listed is not an error, just a infoPascal Rigaux2002-07-221-2/+3
|
* - network: add orinoco_plxPascal Rigaux2002-07-211-5/+14
| | | | | | | | - scsi/hardware_raid: add qla2200 & qla2300 - sound: add audigy snd-cs46xx snd-maestro3 snd-korg1212 snd-ens1370 snd-als4000 - tv: add cyber2000fb - joystick: add emu10k1-gp iforce
* - don't have qla2200 and qla2300 (too big, no room for them)Pascal Rigaux2002-07-211-6/+31
| | | | | - add checking modules of pcitable and usbtable
* remove debugging codePascal Rigaux2002-07-171-1/+0
|
* add snd-via8233 (many others would need to be added...)Pascal Rigaux2002-07-171-1/+1
|
* move all.kernels to the new "kernel" directoryPascal Rigaux2002-07-081-0/+6
|
* the "each" trap got me :-(Pascal Rigaux2002-07-061-7/+5
| | | | | fixed (=> fixes the modules.conf missing many aliases)
* s|modinfo|/sbin/modinfo| for people with "normal" path ;pGuillaume Cottenceau2002-07-051-1/+1
|
* add checks (which used to be done by mdk-stage1/pci-resource/update-pci-ids)Pascal Rigaux2002-07-052-0/+32
|
* add pci_modules4stage1 for use in mdk-stage1/pci-resource/update-pci-ids.plPascal Rigaux2002-07-051-0/+12
|
* better commentPascal Rigaux2002-07-051-4/+2
|
* new directory "kernel" containing:Pascal Rigaux2002-07-045-0/+423
- all.modules all.kernels update_kernel - part of perl-install/modules.pm now in kernel/list_modules.pm and kernel/modules.pl - update_kernel cleaned (it doesn't mention module names anymore, it is now in kernel/modules.pl) - cleanup Makefile - mdk-stage1 doesn't depend on perl-install anymore (more precisely mdk-stage1/pci-resource/update-pci-ids.pl)
hl kwc">my $key_disabled; my ($using_existing_user_config, $using_existing_host_config); my $key_sysconf = '/home/.sysconf'; my $virtual_key_part; my $key_mountopts = 'umask=077,uid=501,gid=501,shortname=mixed,nobadchars'; sub symlinkf_short { my ($dest, $file) = @_; if (my $l = readlink $dest) { $dest = $l if $l =~ m!^/!; } -d $file and log::l("$file already exists and is a directory! writing in directory may be needed, not overwriting"), return; symlinkf($dest, $file); } sub handle_etcfiles { my (@allowed_modes) = @_; #- non-trivial files listed from tools/scan-etc.pl foreach (chomp_(cat_('/image/move/etcfiles'))) { my $mode if 0; m|^# (\S+)| and $mode = $1; m|^/| && member($mode, @allowed_modes) and do { $mode eq 'READ' && !-e $_ and symlinkf_short("/image$_", $_); if ($mode eq 'OVERWRITE') { mkdir_p(dirname($_)); run_program::run('cp', "/image$_", $_); #- need copy contents } $mode eq 'DIR' and mkdir_p $_; } } } sub handle_virtual_key { return if $key_disabled; if (my ($device, $file, $options) = cat_('/proc/cmdline') =~ /\bvirtual_key=([^,\s]+),([^,\s]+)(,\S+)?/) { log::l("using device=$device file=$file as a virtual key with options $options"); my $dir = '/virtual_key_mount'; mkdir $dir; run_program::run('mount', $device, $dir); $options =~ /format/ and run_program::run('mkdosfs', "$dir$file"); require devices; my $loop = devices::find_free_loop(); run_program::run('losetup', $loop, "$dir$file"); run_program::run('mount', $loop, '/home', '-o', $key_mountopts); $virtual_key_part = { device => $loop, mntpoint => '/home', type => 0xc, isMounted => 1 }; } } sub setup_userconf { my ($o) = @_; if (!@{$o->{users}} && `getent passwd 501` =~ /([^:]+):/) { log::l("passwd/501 is $1"); $o->{users} = [ { name => $1 } ]; $ENV{HOME} = "/home/$1"; #- used by lang::read() :-/ print "using existing user configuration\n"; $using_existing_user_config = 1; } } #- run very soon at stage2 start, setup things on tmpfs rw / that #- were not necessary to start stage2 itself (there were setup #- by stage1 of course) sub init { my ($o) = @_; $::testing and goto drakx_stuff; #- rw things mkdir "/$_" foreach qw(home mnt root root/tmp etc var); mkdir "/etc/$_" foreach qw(X11); touch '/etc/modules.conf'; symlinkf "/proc/mounts", "/etc/mtab"; #- these files need be writable but we need a sensible first contents run_program::run('cp', "/image/etc/$_", '/etc') foreach qw(passwd passwd- group sudoers fstab); #- these files are typically opened in read-write mode, we need them copied mkdir_p("/etc/$_"), run_program::run('cp', '-R', glob_("/image/etc/$_/*"), "/etc/$_") foreach qw(cups profile.d sysconfig devfs/conf.d); #- directories we badly need as non-links because files will be written in handle_etcfiles('DIR'); #- for /etc/sysconfig/networking/ifcfg-lo mkdir "/etc/sysconfig/networking"; #- ro things symlinkf_short("/image/etc/$_", "/etc/$_") foreach qw(alternatives man.config services shells pam.d security inputrc ld.so.conf DIR_COLORS bashrc profile init.d devfsd.conf gtk-2.0 pango fonts modules.devfs dynamic hotplug gnome-vfs-2.0 gnome-vfs-mime-magic gtk gconf menu menu-methods nsswitch.conf default login.defs skel ld.so.cache openoffice xinetd.d xinetd.conf syslog.conf sysctl.conf sysconfig/networking/ifcfg-lo ifplugd); symlinkf_short("/image/etc/X11/$_", "/etc/X11/$_") foreach qw(encodings.dir app-defaults applnk fs lbxproxy proxymngr rstart wmsession.d xinit xkb xserver xsm); symlinkf_short("/image/root/$_", "/root/$_") foreach qw(.bashrc); mkdir_p(dirname("/var/$_")), symlinkf_short("/image/var/$_", "/var/$_") foreach qw(lib/samba lib/rpm cache/gstreamer-0.6); #- non-trivial files/directories that need be readable, files that will be overwritten handle_etcfiles('READ', 'OVERWRITE'); #- create remaining /etc and /var subdirectories if not already copied or symlinked, #- because programs most often won't try to create the missing subdir before trying #- to write a file, leading to obscure unexpected failures -d $_ or mkdir_p $_ foreach chomp_(cat_('/image/move/directories-to-create')); chmod 01777, '/tmp', '/var/tmp'; #- /var/tmp -> badly needed for printing from OOo #- remaining non existent /etc files are symlinked from the RO volume, #- better to have them RO than non existent. #- PB: problems arise when programs try to open then in O_WRONLY #- or O_RDWR -> in that case, they should be handled in the #- OVERWRITE section of data/etcfiles) foreach (chomp_(cat_('/image/move/all-etcfiles'))) { -f or symlinkf_short("/image$_", $_); } #- free up stage1 memory eval { fs::umount('/stage1/proc/bus/usb') }; fs::umount($_) foreach qw(/stage1/proc /stage1); #- devfsd needed for devices accessed by old names fs::mount("none", "/dev", "devfs", 0); run_program::run('/sbin/devfsd', '/dev'); -d '/lib/modules/' . c::kernel_version() or warn("ERROR: kernel package " . c::kernel_version() . " not installed\n"), c::_exit(1); $key_disabled = !-e '/cdrom/live_tree_nvidia.clp' && cat_('/proc/mounts') !~ /nfs/; run_program::run('/sbin/service', 'syslog', 'start'); run_program::run('sysctl', '-w', 'kernel.hotplug=/bin/true'); modules::load_category('bus/usb'); eval { modules::load('usb-storage', 'sd_mod') }; handle_virtual_key(); $o->{pcmcia} ||= !$::noauto && c::pcmcia_probe(); cat_('/proc/cmdline') =~ /\bwaitkey\b/ and sleep 15; install_steps::setupSCSI($o); run_program::run('sysctl', '-w', 'kernel.hotplug=/sbin/hotplug'); key_mount($o); cat_('/proc/cmdline') =~ /\bcleankey\b/ and eval { rm_rf $key_sysconf, glob_('/home/.mdkmove*') }; key_installfiles('simple'); setup_userconf($o); if (-f '/etc/X11/X') { print "using existing host configuration\n"; $using_existing_host_config = 1; #- so that /etc/devfsd/conf.d/mouse.conf is used and /dev/mouse created run_program::run('/sbin/service', 'devfsd', 'reload'); } if (-s '/etc/sysconfig/i18n') { lang::set($o->{locale} = lang::read('', 0)); #- read ~/.i18n first if it exists install2::handleI18NClp(); } touch '/var/run/rebootctl'; drakx_stuff: $o->{steps}{$_} = { reachable => 1, text => $_ } foreach qw(initGraphical autoSelectLanguage handleI18NClp verifyKey configMove startMove); $o->{orderedSteps_orig} = $o->{orderedSteps}; $o->{orderedSteps} = [ $using_existing_host_config ? qw(initGraphical verifyKey startMove) : $using_existing_user_config ? qw(initGraphical autoSelectLanguage verifyKey selectMouse selectKeyboard configMove startMove) : qw(initGraphical selectLanguage handleI18NClp acceptLicense verifyKey selectMouse selectKeyboard configMove startMove) ]; $o->{steps}{first} = $o->{orderedSteps}[0]; #- don't use shadow passwords since pwconv overwrites /etc/shadow hence contents will be lost for usb key delete $o->{authentication}{shadow}; member($_, @ALLOWED_LANGS) or delete $lang::langs{$_} foreach keys %lang::langs; } sub lomount_clp { my ($name, $needed_file) = @_; my ($clp, $dir) = ("/cdrom/live_tree_$name.clp", "/image_$name"); -e "$dir$needed_file" and return; if (! -e $clp || cat_('/proc/cmdline') =~ /\blive\b/) { symlink "/cdrom/live_tree_$name", $dir; return; } log::l("lomount_clp: lomounting $name"); mkdir_p($dir); my $dev = devices::find_free_chloop(); run_program::run('losetup', '-r', '-e', 'gz', $dev, $clp); run_program::run('mount', '-r', $dev, $dir); } sub install2::autoSelectLanguage { my $o = $::o; install_steps::selectLanguage($o); } sub install2::handleI18NClp { my $o = $::o; lomount_clp("always_i18n_$o->{locale}{lang}", '/usr'); } sub key_parts { my ($o) = @_; return () if $key_disabled; my @keys = grep { detect_devices::isKeyUsb($_) } @{$o->{all_hds}{hds}}; (fsedit::get_fstab(@keys), grep { detect_devices::isKeyUsb($_) } @{$o->{all_hds}{raw_hds}}); } sub key_mount { my ($o, $o_reread) = @_; if ($o_reread) { $o->{all_hds} = fsedit::empty_all_hds(); install_any::getHds($o, $o); } if ($virtual_key_part) { #- :/ merge_from_mtab didn't got my virtual key, need to add it manually push @{$o->{fstab}}, $virtual_key_part; } require fs; each_index { $_->{mntpoint} = $::i ? "/mnt/key$::i" : '/home'; $_->{options} = $key_mountopts; eval { fs::mount_part($_); 1 } or delete $_->{mntpoint}; } key_parts($o); } sub key_umount { my ($o) = @_; eval { fs::umount_part($_) foreach key_parts($o); 1 }; } sub machine_ident { #- , c::get_hw_address('eth0'); before detect of network :( md5_hex(join '', (map { (split)[1] } cat_('/proc/bus/pci/devices'))); } sub key_installfiles { my ($mode) = @_; my $done if 0; $done and return; mkdir $key_sysconf; my $sysconf = "$key_sysconf/" . machine_ident(); my $copy_userinfo = sub { my (@files) = @_; my @etcpasswords = glob("$key_sysconf/*/etc/passwd"); if (@etcpasswords > 1) { print "inconsistency: more than one /etc/passwd on key! can't proceed, please clean the key\n"; exit 1; } return if !@etcpasswords; my ($path) = $etcpasswords[0] =~ m|(.*)/etc/passwd|; run_program::run('cp', '-f', "$path$_", $_) foreach @files; run_program::run('rm', '-f', $etcpasswords[0]); }; if (!-d $sysconf) { if ($mode eq 'full') { log::l("key_installfiles: installing config files in $sysconf"); mkdir $sysconf; foreach (chomp_(cat_('/image/move/keyfiles'))) { my $target_dir = $sysconf . dirname($_); mkdir_p($target_dir); if (/\*$/) { run_program::run('cp', glob_($_), $target_dir); symlinkf("$sysconf$_", $_) foreach glob($_); } else { run_program::run('cp', $_, "$sysconf$_"); symlinkf("$sysconf$_", $_); } } run_program::run('cp', '/image/move/README.adding.more.files', $key_sysconf); $done = 1; } else { #- not in full mode and no host directory, grab user config from first existing host directory if possible log::l("key_installfiles: only looking for user config files"); $copy_userinfo->(qw(/etc/passwd /etc/group /etc/sysconfig/i18n)); } } else { log::l("key_installfiles: installing symlinks to key"); if (!-e "$sysconf/etc/passwd") { log::l("key_installfiles: /etc/passwd not here, trying to copy from previous host boot"); $copy_userinfo->(qw(/etc/passwd /etc/group)); } foreach (chomp_(`find $sysconf -type f`)) { my ($path) = /^\Q$sysconf\E(.*)/; mkdir_p(dirname($path)); symlinkf($_, $path); } $done = 1; $::o->{steps}{configMove}{done} = 1; } #- /etc/sudoers can't be a link unlink($_), run_program::run('cp', "/image$_", $_) foreach qw(/etc/sudoers); } sub reboot { output('/var/run/rebootctl', "reboot"); #- tell X_move to not respawn run_program::run('killall', 'X'); #- kill it ourselves to be sure that it won't lock console when killed by our init exit 0; } sub install2::verifyKey { my ($o) = $::o; log::l("automatic transparent key support is disabled"), return if $key_disabled; while (cat_('/proc/mounts') !~ m|\s/home\s|) { my $message = key_parts($o) ? N("Your USB key doesn't have any valid Windows (FAT) partitions. We need one to continue (beside, it's more standard so that you will be able to move and access your files from machines running Windows). Please plug in an USB key containing a Windows partition instead. You may also proceed without an USB key - you'll still be able to use Mandrake Move as a normal live Mandrake Operating System.") : N("We didn't detect any USB key on your system. If you plug in an USB key now, Mandrake Move will have the ability to transparently save the data in your home directory and system wide configuration, for next boot on this computer or another one. Note: if you plug in a key now, wait several seconds before detecting again. You may also proceed without an USB key - you'll still be able to use Mandrake Move as a normal live Mandrake Operating System."); $o->ask_okcancel_({ title => N("Need a key to save your data"), messages => formatAlaTeX($message), ok => N("Detect USB key again"), cancel => N("Continue without USB key") }) or return; key_mount($o, 'reread'); } local *F; while (!open F, '>/home/.touched') { if (!key_umount($o)) { #- this case happens when the user boots with a write-protected key containing #- all user and host data, /etc/X11/X which is on key busyfies it $o->ask_okcancel_({ title => N("Key isn't writable"), messages => formatAlaTeX( N("The USB key seems to have write protection enabled, but we can't safely unplug it now. Click the button to reboot the machine, unplug it, remove write protection, plug the key again, and launch Mandrake Move again.")), ok => N("Reboot") }); reboot(); } modules::unload('usb-storage'); #- it won't notice change on write protection otherwise :/ $o->ask_okcancel_({ title => N("Key isn't writable"), messages => formatAlaTeX( N("The USB key seems to have write protection enabled. Please unplug it, remove write protection, and then plug it again.")), ok => N("Retry"), cancel => N("Continue without USB key") }) or return; modules::load('usb-storage'); sleep 2; key_mount($o, 'reread'); } close F; unlink '/home/.touched'; my $wait = $using_existing_host_config || $o->wait_message(N("Setting up USB key"), N("Please wait, setting up system configuration files on USB key...")); key_installfiles('full'); setup_userconf($o); } sub enable_service { run_program::run('/sbin/chkconfig', '--level', 5, $_[0], 'on'); } sub install2::configMove { my $o = $::o; #- just in case lomount_clp("always_i18n_$o->{locale}{lang}", '/usr'); if (!$using_existing_user_config) { if (cat_('/proc/cmdline') =~ /\buser=(\w+)/) { $o->{users} = [ { name => $1 } ]; } else { require any; any::ask_user_one($o, $o->{users} ||= [], $o->{security}, additional_msg => N("Enter your user information, password will be used for screensaver"), noaccept => 1, needauser => 1, noicons => 1); } #- force uid/gid to 501 as it was used when mounting key, addUser may choose 502 when key already holds user data put_in_hash($o->{users}[0], { uid => 501, gid => 501 }); require install_steps; install_steps::addUser($o); } $::noauto and goto after_autoconf; my $wait = $o->wait_message(N("Auto configuration"), N("Please wait, detecting and configuring devices...")); #- automatic printer, timezone, network configs require install_steps_interactive; if (cat_('/proc/mounts') !~ /nfs/) { install_steps_interactive::configureNetwork($o); enable_service('network'); } enable_service('netfs'); install_steps_interactive::summaryBefore($o); modules::load_category('multimedia/sound'); enable_service('sound'); detect_devices::isLaptop() or enable_service('numlock'); after_autoconf: require timezone; timezone::write($o->{prefix}, $o->{timezone}); $o->{useSupermount} = 1; fs::set_removable_mntpoints($o->{all_hds}); fs::set_all_default_options($o->{all_hds}, %$o, lang::fs_options($o->{locale})); require install_any; install_any::write_fstab($o); modules::write_conf(''); require mouse; mouse::write_conf($o, $o->{mouse}, 1); #- write xfree mouse conf detect_devices::install_addons(''); { my $user = $o->{users}[0]{name}; my $confdir = "/home/$user/.kde/share/config"; mkdir_p($confdir); output("$confdir/kdeglobals", cat_("/usr/share/config/kdeglobals")); lang::configure_kdeglobals($o->{locale}, $confdir); run_program::run('chown', '-R', "$user.$user", "/home/$user/.kde"); } foreach my $step (@{$o->{orderedSteps_orig}}) { next if member($step, @{$o->{orderedSteps}}); while (my $f = shift @{$o->{steps}{$step}{toBeDone} || []}) { log::l("doing remaining toBeDone for undone step $step"); eval { &$f() }; $o->ask_warn(N("Error"), [ N("An error occurred, but I don't know how to handle it nicely. Continue at your own risk."), formatError($@) ]) if $@; } } } sub install_TrueFS_in_home { my ($o) = @_; require fsedit; my $home = fsedit::mntpoint2part('/home', $o->{fstab}) or return; my %loopbacks = map { my $part = { type => 0x83, device => "/home/.mdkmove-$_", loopback_file => "/.mdkmove-$_", loopback_device => $home, mntpoint => "/home/$_/.mdkmove-truefs", size => 6 << 11, toFormat => ! -e "/home/.mdkmove-$_", }; $_ => $part; } list_users(); $home->{loopback} = [ values %loopbacks ]; fsedit::recompute_loopbacks($o->{all_hds}); fs::formatMount_all([], $home->{loopback}, $o->{prefix}); foreach my $user (keys %loopbacks) { my $dir = $loopbacks{$user}{mntpoint}; foreach (qw(.kde .openoffice)) { if (-d "/home/$user/$_" && ! -d "$dir/$_") { run_program::run('mv', "/home/$user/$_", "$dir/$_"); } mkdir $_ foreach "/home/$user/$_", "$dir/$_"; run_program::run('mount', '-o', 'bind', "$dir/$_", "/home/$user/$_"); } my $cache = "/tmp/.$user-cache"; foreach (qw(.kde/share/cache)) { mkdir_p("$cache/$_"); mkdir_p("/home/$user/" . dirname($_)); symlink "$cache/$_", "/home/$user/$_"; } run_program::run('chown', '-R', "$user.$user", $dir); run_program::run('chown', '-R', "$user.$user", $cache); $ENV{XAUTHORITY} = "$dir/.Xauthority"; $ENV{ICEAUTHORITY} = "$dir/.ICEauthority"; } } sub errorInStep { my ($o, $err) = @_; if (!fsedit::mntpoint2part('/home', $o->{fstab})) { $o->ask_warn(N("Error"), [ N("An error occurred"), formatError($err) ]); return; } $o->ask_okcancel_({ title => N("Error"), messages => formatAlaTeX( N("An error occurred: %s This may come from corrupted system configuration files on the USB key, in this case removing them and then rebooting Mandrake Move would fix the problem. To do so, click on the corresponding button. You may also want to reboot and remove the USB key, or examine its contents under another OS, or even have a look at log files in console #3 and #4 to try to guess what's happening.", formatError($err))), ok => N("Remove system config files"), cancel => N("Simply reboot") }) or goto reboot; eval { rm_rf $key_sysconf }; reboot: reboot(); } sub install2::initGraphical { my $xdim = $::rootwidth; $xdim < 800 and $xdim = 800; $xdim > 1600 and $xdim = 1600; run_program::run('qiv', '--root', "/image/move/BOOT-$xdim-MOVE.jpg"); *install_steps_interactive::errorInStep = \&errorInStep; } sub install2::startMove { my $o = $::o; $::WizardWindow->destroy if $::WizardWindow; require ugtk2; ugtk2::flush(); #- get info from existing fstab. This won't do anything if we already wrote fstab in configMove fs::get_info_from_fstab($o->{all_hds}, ''); foreach (fsedit::get_really_all_fstab($o->{all_hds})) { if (isSwap($_)) { eval { swap::swapon($_->{device}) }; } elsif ($_->{mntpoint} && !$_->{isMounted} && !$::noauto) { mkdir_p($_->{mntpoint}); run_program::run('mount', $_->{mntpoint}); } } symlinkf("/usr/share/services/ksycoca-$o->{locale}{lang}", '/etc/X11/ksycoca'); install_TrueFS_in_home($o); my $username = $o->{users}[0]{name}; output('/var/run/console.lock', $username); output("/var/run/console/$username", 1); run_program::run('pam_console_apply'); run_program::run('chown', "$username.root", '/var/run/rebootctl'); touch '/var/run/utmp'; run_program::run('runlevel_set', '5'); foreach (glob('/etc/rc.d/rc5.d/*')) { next if member($_, qw(xfs dm devfsd syslog)); next if /~$/; run_program::run($_, 'start'); } #- allow user customisation of startup through /etc/rc.d/rc.local run_program::run('/etc/rc.d/rc.local'); if (cat_('/proc/mounts') =~ m|\s/home\s|) { output '/var/lib/machine_ident', machine_ident(); run_program::run('/usr/bin/etc-monitorer.pl', uniq map { dirname($_) } (chomp_(`find /etc -type f`), grep { readlink !~ m|^/| } chomp_(`find /etc -type l`))); run_program::raw({ detach => 1 }, '/usr/bin/dnotify', '-MCRD', '/etc', '-r', '-e', '/usr/bin/etc-monitorer.pl', '{}') or die "dnotify not found!"; } #- password in screensaver doesn't make sense if we keep the shell if (cat_('/proc/cmdline') !~ /\bshell\b/) { kill 9, cat_('/var/run/drakx_shell.pid'); output('/dev/tty2', "Killed\n"); } if (fork()) { sleep 1; log::l("DrakX waves bye-bye"); open STDOUT, ">/dev/tty10"; #- don't display startkde shit on first console open STDERR, ">/dev/tty10";