summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
ModeNameSize
-rw-r--r--.cvsignore135logstatsplain
-rw-r--r--Makefile6254logstatsplain
-rw-r--r--Makefile.common1540logstatsplain
-rw-r--r--Makefile.mkinitrd_helper723logstatsplain
-rw-r--r--adsl.c4594logstatsplain
-rw-r--r--adsl.h780logstatsplain
-rw-r--r--automatic.c4222logstatsplain
-rw-r--r--automatic.h1051logstatsplain
d---------bzlib380logstatsplain
-rw-r--r--cdrom.c4284logstatsplain
-rw-r--r--cdrom.h580logstatsplain
-rw-r--r--config-stage1.h1223logstatsplain
-rw-r--r--dhcp.c14773logstatsplain
-rw-r--r--dhcp.h780logstatsplain
d---------dietlibc1100logstatsplain
-rw-r--r--disk.c9951logstatsplain
-rw-r--r--disk.h556logstatsplain
-rw-r--r--dns.c4396logstatsplain
-rw-r--r--dns.h634logstatsplain
d---------doc238logstatsplain
-rw-r--r--frontend-common.c801logstatsplain
-rw-r--r--frontend.h1621logstatsplain
d---------init-data256logstatsplain
-rw-r--r--init-libc-headers.h1023logstatsplain
-rw-r--r--init.c10126logstatsplain
d---------insmod-busybox371logstatsplain
d---------insmod-modutils212logstatsplain
-rw-r--r--insmod.h502logstatsplain
d---------linux-2.272logstatsplain
-rw-r--r--log.c1556logstatsplain
-rw-r--r--log.h738logstatsplain
-rw-r--r--lomount.c3195logstatsplain
-rw-r--r--lomount.h488logstatsplain
d---------mar241logstatsplain
-rw-r--r--minilibc.c3845logstatsplain
-rw-r--r--minilibc.h4825logstatsplain
d---------mkinitrd_helper81logstatsplain
-rw-r--r--modules.c9870logstatsplain
-rw-r--r--modules.h847logstatsplain
-rw-r--r--modules_descr.h2287logstatsplain
-rw-r--r--mount.c4581logstatsplain
-rw-r--r--mount.h705logstatsplain
-rw-r--r--mount_rpcgen.h6175logstatsplain
-rw-r--r--network.c20802logstatsplain
-rw-r--r--network.h1335logstatsplain
-rw-r--r--newt-frontend.c8639logstatsplain
d---------newt619logstatsplain
-rw-r--r--nfsmount.c7099logstatsplain
-rw-r--r--nfsmount.h11140logstatsplain
d---------pci-resource119logstatsplain
d---------pcmcia739logstatsplain
d---------pcmcia_696logstatsplain
d---------ppp946logstatsplain
-rw-r--r--probing.c15595logstatsplain
-rw-r--r--probing.h931logstatsplain
-rw-r--r--rescue-gui.c5167logstatsplain
d---------rp-pppoe410logstatsplain
d---------slang2495logstatsplain
d---------stage1-data149logstatsplain
-rw-r--r--stage1.c10911logstatsplain
-rw-r--r--stage1.h1619logstatsplain
-rw-r--r--stdio-frontend.c6597logstatsplain
-rw-r--r--tools.c9393logstatsplain
-rw-r--r--tools.h1245logstatsplain
-rw-r--r--url.c10081logstatsplain
-rw-r--r--url.h1247logstatsplain
d---------usb-resource119logstatsplain
lass="hl kwc">map { if_(/(.*)\.png/, $1) } (@l ? @l : all($dir)); } sub addKdmIcon { my ($user, $icon) = @_; my $dest = "$::prefix/usr/share/faces/$user.png"; eval { cp_af(facesdir() . $icon . ".png", $dest) } if $icon; } sub allocUsers { my ($users) = @_; my @m = my @l = facesnames(); foreach (grep { !$_->{icon} || $_->{icon} eq "automagic" } @$users) { $_->{auto_icon} = splice(@m, rand(@m), 1); #- known biased (see cookbook for better) log::l("auto_icon is $_->{auto_icon}"); @m = @l unless @m; } } sub addUsers { my ($users) = @_; allocUsers($users); foreach my $u (@$users) { run_program::rooted($::prefix, "usermod", "-G", join(",", @{$u->{groups}}), $u->{name}) if !is_empty_array_ref($u->{groups}); addKdmIcon($u->{name}, delete $u->{auto_icon} || $u->{icon}); } } sub crypt { my ($password, $md5) = @_; crypt($password, $md5 ? '$1$' . salt(8) : salt(2)); } sub enableShadow() { run_program::rooted($::prefix, "pwconv") or log::l("pwconv failed"); run_program::rooted($::prefix, "grpconv") or log::l("grpconv failed"); } sub hdInstallPath() { my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/?(.*)|); my $head = first(readlink("/tmp/hdimage") =~ m|$::prefix(.*)|); defined $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); } sub setupBootloader { my ($in, $b, $all_hds, $fstab, $security) = @_; require bootloader; general: { local $::Wizard_no_previous = 1 if $::isStandalone; setupBootloader__general($in, $b, $all_hds, $fstab, $security) or return 0; } setupBootloader__boot_bios_drive($in, $b, $all_hds->{hds}) or goto general; { local $::Wizard_finished = 1 if $::isStandalone; setupBootloader__entries($in, $b, $all_hds, $fstab) or goto general; } #- somewhere should bootloader really installed ? $::isStandalone and my $_w = $in->wait_message(N("Please wait"), N("Bootloader installation in progress")); eval { run_program::rooted($::prefix, 'lilo', '-u') } if $::isInstall && !$::o->{isUpgrade} && -e "$::prefix/etc/lilo.conf" && glob("$::prefix/boot/boot.*"); bootloader::install($b, $all_hds); if (my $acpi = bootloader::get_append($b, 'acpi')) { if (!member($acpi, 'off', 'ht')) { $in->do_pkgs->install('acpi', 'acpid') if !(-x "$::prefix/usr/bin/acpi" && -x "$::prefix/usr/sbin/acpid") } } } sub setupBootloader_simple { my ($in, $b, $all_hds, $fstab, $security) = @_; my $hds = $all_hds->{hds}; require bootloader; my $mixed_kind_of_disks = bootloader::mixed_kind_of_disks($hds); #- full expert questions when there is 2 kind of disks #- it would need a semi_auto asking on which drive the bios boots... $mixed_kind_of_disks || $b->{bootUnsafe} || arch() =~ /ppc/ or return 1; #- default is good enough if (!$mixed_kind_of_disks && arch() !~ /ia64/) { setupBootloader__mbr_or_not($in, $b, $hds, $fstab) or return 0; } else { general: setupBootloader__general($in, $b, $all_hds, $fstab, $security) or return 0; } setupBootloader__boot_bios_drive($in, $b, $hds) or goto general; 1; } sub setupBootloader__boot_bios_drive {