23 Commits

Author SHA1 Message Date
Natanael Copa
1b50a0c4fe main/syslinux: update-extlinux: autodetect poweroff.c32
and trivial fix for comment in conf
2013-06-30 12:53:03 +00:00
Natanael Copa
5341d09e65 main/syslinux: use cmp -s instead of cmp --quiet due to busybox 2013-06-30 11:33:25 +00:00
Dubiousjim
083a16ab99 main/syslinux: hooks for bootloader password
We allow a password to be set in /etc/update-extlinux.conf. Instructions for
generating this are in /etc/update-extlinux.conf. For reference, here is another
(equivalent) way to generate the MD5 password: openssl passwd -1 -salt yy pass

If one sets a password, one will presumably want to make
/etc/update-extlinux.conf world-unreadable. We don't do that for you; however
we do make sure when a password is present to make the /boot/extlinux.conf
files we generate be world-unreadable.

Of the auto-generated entries, only HDT (if this is generated) is now
configured to respect the password; however, you can include "MENU PASSWD" in
any entries you put in /etc/update-extlinux.d/.

For example, I configure my BIOS to only boot from the internal drive, but I
have an entry in /etc/update-extlinux.d that permits chain-booting from a USB
key, and I have this entry configured to also require the password. (The BIOS
is also passworded, so that these settings can't be changed willy-nilly.)

Conflicts:
	main/syslinux/update-extlinux.conf
2013-06-30 11:20:34 +00:00
Dubiousjim
7558f26d28 main/syslinux: don't create backup when no changes 2013-06-30 11:20:13 +00:00
Dubiousjim
5eebfc3d65 main/syslinux: add Hardware Detection Tool entry
HDT provides a curses-like interface to display lots of hardware info
about your machine at bootloader time.

We don't install /boot/hdt.c32, but if it's present (it can be copied from
/usr/share/syslinux/hdt.c32), we add a menu entry for it---in preference to,
rather than in addition to, memtest, since HDT has a menu entry which invokes
memtest.

Using HDT to its full capacity requires finding or generating modules.pcimap
and pci.ids files for your machine, and installing them in /boot. We might want
to document this, which I don't here (but the online docs for HDT do). These
aren't required to use other functionality of HDT; and it's pretty useful
already without those.
2013-06-30 11:19:59 +00:00
Dubiousjim
faf4eed006 main/syslinux: add reboot entry
We don't install /boot/reboot.c32, but if it's present (it can be copied from
/usr/share/syslinux/reboot.c32), we add a menu entry for it---just like
with memtest.

Add a comment to /etc/update-extlinux.conf stating this.

It'd already be possible to get a reboot entry using the
/etc/update-extlinux.d/ folder, but this patch provides a more intelligent
framework with nicer layout.

The syslinux sourceball also provides a shutdown module, but I couldn't get this to
work and looking at the sources reveals it to be for machines with APM enabled.
Not sure how many machines that applies to anymore.
2013-06-30 11:19:51 +00:00
Dubiousjim
589d7d3981 main/syslinux: reorganize menu layout
Add a blank line between any entries added from /etc/update-extlinux.d/*.

Move the memtest entry (if any) after a separator line, below these.
2013-06-30 11:19:33 +00:00
Dubiousjim
64e8c06cb5 main/syslinux: use more specific LINUX (instead of KERNEL) for kernels 2013-06-30 11:18:05 +00:00
Dubiousjim
ed12e5de37 main/syslinux: use more specific COM32 (instead of KERNEL) for mboot.c32 2013-06-30 11:17:50 +00:00
Dubiousjim
e81e10dcbe main/syslinux: fix/refactor initramfs
If xen.gz is present, there are multiple kernels, and later ones lack an
initramfs, they'll currently be (wrongly) configured to use a initramfs anyway.
Fixed.

We also refactor the check for /boot/initramfs-$tag, and configure this using a
separate INITRD line, instead of adding it to the APPEND line. In passing, this
also closes a second might-use-a-stale-initramfs bug.
2013-06-30 11:17:13 +00:00
William Pitcock
5d5bdd8971 main/syslinux: install libcom32.c32 for mboot.c32 and menu.c32 2013-04-26 12:07:38 -05:00
Natanael Copa
89d3e577e9 main/syslinux: install libutil.c32 2013-02-22 15:30:31 +00:00
Natanael Copa
e69409a284 main/syslinux: run extlinux --update 2013-02-22 12:48:10 +00:00
Daniel Beecham
694f922569 main/syslinux: update-linux: find -name "*" instead of find -name * 2012-07-25 09:13:34 +00:00
Natanael Copa
7b87ff6f9c main/syslinux: update-extlinux: create labels for xen dom0 kernels 2012-06-21 15:07:44 +00:00
Natanael Copa
8ded1f134b main/syslinux: set umask in update-exlinux
so extlinux.conf don't end up as world writeable
2011-10-26 14:42:28 +00:00
Natanael Copa
934550384d main/syslinux: update-extlinux detect kernel labels as 'grsec' 2011-10-22 12:58:15 +00:00
William Pitcock
223fae88ef main/syslinux: fix xen stanzas 2011-09-03 00:42:37 -05:00
William Pitcock
2879013b96 main/syslinux: detect xen 2011-09-03 00:27:50 -05:00
Natanael Copa
b074064773 main/syslinux: misc update-extlinux fixes
- rename /etc/extlinux-conf to /etc/update-extlinux.conf

- Do not exit with fail if update-extlinux.conf is missing
- Always warn if root= is not defined in update-extlinux.conf
- Try harder to detect the root device by parsing /proc/mounts
- Exit with error if we cannot detect the Root device
- Rename fancy_menu to vesa_menu
- Unifiy the code generating vesa/standard menus
- Keep a backup of old extlinux.conf
- add "overwrite" config option so it is possible to skip overwriting
  the extlinux.conf.

- Added a post-upgrade that imports current extlinux.conf to
  update-extlinux.conf
2011-08-03 19:28:23 +00:00
William Pitcock
479bcc87e9 main/syslinux: add $TYPE to $modules 2011-06-30 01:29:37 -05:00
William Pitcock
0ef6140b0d main/syslinux: fix some bugs 2011-06-11 00:21:10 -05:00
William Pitcock
cddf77d678 main/syslinux: dynamically generate /boot/extlinux.conf using a trigger on /boot 2011-06-11 00:02:11 -05:00