summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
Commit message (Collapse)AuthorAgeFilesLines
* many functions in fsedit don't modify anything, they are simply accessors.Pascal Rigaux2004-08-031-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | create fs::get and move them into it - device2part(), up_mount_point() moved from fs to fs::get - part2hd(), file2part(), has_mntpoint(), mntpoint2part(), empty_all_hds() moved from fsedit to fs::get - fsedit::get_root() -> fs::get::root() - fsedit::get_root_() -> fs::get::root_() - fsedit::get_really_all_fstab() -> fs::get::really_all_fstab() - fsedit::get_all_fstab_and_holes() -> fs::get::fstab_and_holes() - fsedit::get_all_fstab() -> fs::get::fstab() - fsedit::get_all_holes() -> fs::get::holes() - fsedit::all_free_space -> fs::get::free_space() - fsedit::get_really_all_fstab() -> fs::get::really_all_fstab() - fsedit::get_fstab_and_holes() -> fs::get::hds_fstab_and_holes() - fsedit::get_holes() -> fs::get::hds_holes() - fsedit::get_fstab() -> fs::get::hds_fstab() - fsedit::free_space() -> fs::get::hds_free_space() - fsedit::get_visible_fstab() unused, removed
* - add field {fs_type} partially replacing {pt_type}Pascal Rigaux2004-07-271-6/+10
| | | | | | | | | | | | | | | | | | | | {pt_type} is always a number, {fs_type} is always a string - introduce set_isFormatted() (to ensure {notFormatted} but also {fs_type_from_magic} and {bad_fs_type_magic} are updated) - don't use 0x483 for ext3 anymore (same for reiserfs...), the type_name gives both a pt_type and a fs_type - many accessors from partition_table removed (type2fs(), fs2pt_type()) - remove isThisFs() (not useful anymore since we can use directly {fs_type}) - remove isFat() (inline the function) - other isXXX() from partition_table are moved to fs::type - part2name() is now fs::type::part2type_name - name2pt_type() is now fs::type::type_name2subpart() - partition_table::important_types() is now fs::type::type_names() - fsedit::typeOfPart() is now fs::type::fs_type_from_magic() - no need to truncate type_name since they are shorter
* remove debugging codePascal Rigaux2004-07-201-2/+0
|
* don't bootloader::suggest_floppyPascal Rigaux2004-07-191-15/+0
|
* don't unset prompt when timeout is undefined (and don't care when timeout is 0)Pascal Rigaux2004-07-191-2/+2
|
* save the previous bootloader config file (bugzilla #10072)Pascal Rigaux2004-07-181-6/+20
|
* make_boot_splash is no good since the same initrd is used with or without vga=,Pascal Rigaux2004-07-151-9/+0
| | | | | so call add_boot_splash directly
* alt_xxx instead of old_xxx for bootloader labels (as suggested by Svetoslav ↵Pascal Rigaux2004-07-151-1/+1
| | | | Slavtchev on cooker)
* (sort_hds_according_to_bios): when installing on floppy, $boot_hd is ↵Pascal Rigaux2004-07-121-3/+3
| | | | undefined, but that's ok (bugzilla #10260)
* remove unneeded spaces in append=" foo"Pascal Rigaux2004-07-061-0/+1
|
* write_lilo handles "optional"Pascal Rigaux2004-07-061-0/+1
|
* rename varPascal Rigaux2004-07-061-17/+17
|
* cleanupPascal Rigaux2004-07-061-2/+1
|
* cleanupPascal Rigaux2004-07-061-12/+13
|
* big renaming of field {type} to {pt_type},Pascal Rigaux2004-07-051-1/+1
| | | | | | this will allow defining {fs_type} which will always be a string whereas {pt_type} will always be a number
* drop "other" entries in grub conf when the device is unknownPascal Rigaux2004-07-051-3/+8
|
* - handle missing root=/dev/xxx kernel commandline parameterPascal Rigaux2004-07-051-6/+7
| | | | | - handle grub splashimage option
* oops, revert debugging codePascal Rigaux2004-07-051-1/+1
|
* fix typoPascal Rigaux2004-07-031-1/+1
|
* fix typoPascal Rigaux2004-07-011-1/+1
|
* - mkinitrd() calls make-boot-splash after building the initrdPascal Rigaux2004-06-291-47/+121
| | | | | | | | | | | | | (since /sbin/mkinitrd doesn't do it anymore) - change mkinitrd() parameters - change add_kernel() parameters and add option b_no_initrd (it is available in installkernel though i suspect it is unused) - after reading config file, get {perImageAppend} and {default_vga} (it was only done for lilo and {perImageAppend}) - keep the current kernel for linux-nonfb too (it was only done for failsafe) - add create_link_source(), action(), when_config_changed_{lilo,grub,yaboot} - create write_yaboot()
* after install, when modifying kernel parameters in all entries, skip the ↵Pascal Rigaux2004-06-281-1/+3
| | | | | | | "failsafe" entry (bugzilla #10143)
* when adding a new kernel, have a nicer new name for conflicting entryPascal Rigaux2004-06-251-3/+8
|
* when modifying a symlink, ensure we also use the long name for the old ↵Pascal Rigaux2004-06-251-15/+38
| | | | symlink in the existing entries
* fix 2 typosPascal Rigaux2004-06-251-1/+1
|
* drop obsolete functionPascal Rigaux2004-06-251-8/+0
|
* drop obsolete lnx4win_file()Pascal Rigaux2004-06-251-5/+0
|
* major cleanup and rewritePascal Rigaux2004-06-251-359/+419
| | | | | | | | | | | | | | | | | | | | - some functions have been renamed - some functions have changed prototype - no more bootloader::vga_modes, we use Xconfig::resolution_and_depth::bios_vga_modes() - no more detectloader, it is now detect_main_method(), but notice that bootloader::read() + bootloader::write() abstract all this! - update_for_renumbered_partitions() is surely broken :) - sort_hds_according_to_bios() and mixed_kind_of_disks() uses new function hd2bios_kind() - new data structure "kernel_str" - lilo doesn't need so much help as it used to be, so don't put as much "disk=/dev/sda bios=0x80" as before some goals: - don't rely on device names (this allows not to care too much about devfs vs udev vs ...) - kernels can be named something else than /boot/vmlinuz*, please use the various functions to construct the initrd file name, the symlink name...
* add check_enough_space() and use itPascal Rigaux2004-06-221-3/+7
|
* - fix typoPascal Rigaux2004-06-221-107/+6
| | | | | - remove silo code (sparc)
* (write_grub_config) do not write partial config file (thus garbaging previousThierry Vignaud2004-06-011-16/+15
| | | | | config) if an error occured
* perl now handle cleanly utf8 string in exceptions, no need to die \N("...")Pascal Rigaux2004-04-051-2/+2
|
* (method_choices) blacklist again Savage, they're broken again :-(Thierry Vignaud2004-03-261-3/+1
|
* - preferring "p3-smp-64GB" first (for BIGMEM + SMP)Pascal Rigaux2004-03-241-5/+4
| | | | | | - also adding i686-up-4GB - cleanup code
* fix extension parsing (vmlinuz-2.6.3-7mdksmp & vmlinuz-2.6.3-7mdkenterprise ↵Pascal Rigaux2004-03-241-1/+1
| | | | vs vmlinuz-2.6.3-7mdk-p3-smp-64GB & vmlinuz-2.6.3-7mdk-i686-up-4GB)
* sorting based on @prefered is nearly unused, remove itPascal Rigaux2004-03-241-4/+1
|
* LSB doesn't need kernel 2.4 anymorePascal Rigaux2004-03-231-2/+4
|
* - always generate a precise entry using the precise versionPascal Rigaux2004-03-111-16/+7
| | | | | | - remove the linux-2.4 or linux-2.6 entries which don't work together with the precise version entry - still have the "linux" entry
* spell Mandrakelinux in one wordThierry Vignaud2004-03-101-1/+1
|
* (read) default to lilo if grub config file isn't there (workaroundThierry Vignaud2004-03-021-1/+1
| | | | | buggy detectloader only checking MBR)
* bugzilla #8133 says "VT8751 [ProSavageDDR P4M266] VGA Controller" (0x5333,Pascal Rigaux2004-03-021-1/+3
| | | | | | 0x8d04) has no pb with graphical lilo. So only keeping the restriction for (0x5333, 0x8d03), hoping that's what fpons wanted.
* if the default bootloader entry is invalid, choose another onePascal Rigaux2004-03-021-1/+5
|
* (update_for_renumbered_partitions):Pascal Rigaux2004-02-201-9/+13
| | | | | | | - handle no grub config - skip modifications when dev2grub fail (since the device not in device.map means the device is currently unused for booting)
* remove bad entries after reading existing conf filePascal Rigaux2004-02-171-2/+4
|
* log where the bootloader is installedPascal Rigaux2004-02-171-1/+1
|
* fix reading grub config (esp. when /boot is a separate partition)Pascal Rigaux2004-02-131-22/+24
| | | | | (nb for titi: join($xx, $yy) is *not* useful)
* try hard to update_bootloader_for_renumbered_partitions()Pascal Rigaux2004-02-131-0/+43
|
* create read_grub_device_map()Pascal Rigaux2004-02-131-1/+6
|
* in get_kernels_and_labels():Pascal Rigaux2004-02-121-16/+15
| | | | | | | - change internal data structure - change regexp matching kernel names (was broken for 2.4.25-0.pre7.3mdk) - default to kernel 2.4 when lsb is installed
* special way to remove mem=<memsize>Pascal Rigaux2004-02-061-1/+1
|