This set of patches makes the changes Natanael suggested (use cmp instead of
diff, eliminate the perl password utility), and bumps the pkgrel. Some of the
commits are the same as before, but this whole set can replace what I sent
earlier.
Dubiousjim (9):
main/syslinux: fix/refactor initramfs
main/syslinux: use more specific COM32 (instead of KERNEL) for mboot.c32
main/syslinux: use more specific LINUX (instead of KERNEL) for kernels
main/syslinux: reorganize menu layout
main/syslinux: add reboot entry
main/syslinux: add Hardware Detection Tool entry
main/syslinux: don't create backup when no changes
main/syslinux: hooks for bootloader password
main/syslinux: update checksums and bump pkgrel
main/syslinux/APKBUILD | 14 +++----
main/syslinux/update-extlinux | 76 ++++++++++++++++++++++++++++----------
main/syslinux/update-extlinux.conf | 16 ++++++++
3 files changed, 79 insertions(+), 27 deletions(-)
--
1.8.3.1
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
[alpine-devel] [PATCH 3/9] main/syslinux: use more specific LINUX (instead of KERNEL) for kernels
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.
---
main/syslinux/update-extlinux | 7 +++++++main/syslinux/update-extlinux.conf | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 0dc3601..1c5fc5c 100755
--- a/main/syslinux/update-extlinux+++ b/main/syslinux/update-extlinux
@@ -151,6 +151,13 @@ if [ -f "/boot/memtest" ]; then
echo "" >> $conf.new
fi
+if [ -f "/boot/reboot.c32" ]; then+ everbose "Found reboot"+ echo "LABEL reboot" >> $conf.new+ echo " MENU LABEL Reboot" >> $conf.new+ echo " COM32 reboot.c32" >> $conf.new+ echo "" >> $conf.new+fiif [ "$overwrite" != "1" ]; then
diff --git a/main/syslinux/update-extlinux.conf b/main/syslinux/update-extlinux.conf
index 59f9e60..5a36a1f 100644
--- a/main/syslinux/update-extlinux.conf+++ b/main/syslinux/update-extlinux.conf
@@ -42,3 +42,7 @@ default=grsec
# options to hand to xen hypervisor, useful ones are:
# dom0_mem=256M (give domain-0 environment 256M ram)
xen_opts=dom0_mem=256M
++# if you copy /usr/share/syslinux/reboot.c32 to /boot/, a menu entry will be auto-generated for it++# a menu entry will also be auto-generated for /boot/memtest, if you download it and install it
--
1.8.3.1
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
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.
---
main/syslinux/update-extlinux | 12 +++++++++++-main/syslinux/update-extlinux.conf | 5 ++++-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 1c5fc5c..66bc0ed 100755
--- a/main/syslinux/update-extlinux+++ b/main/syslinux/update-extlinux
@@ -143,7 +143,17 @@ done
echo "MENU SEPARATOR" >> $conf.new
echo "" >> $conf.new
-if [ -f "/boot/memtest" ]; then+if [ -f "/boot/hdt.c32" ]; then+ everbose "Found Hardware Detection Tool: /boot/hdt.c32"+ echo "LABEL hdt" >> $conf.new+ echo " MENU LABEL Hardware info" >> $conf.new+ echo " COM32 hdt.c32" >> $conf.new+ if [ -f "/boot/memtest" ]; then+ everbose "Found memtest86+: /boot/memtest"+ echo " APPEND memtest=memtest" >> $conf.new+ fi+ echo "" >> $conf.new+elif [ -f "/boot/memtest" ]; then everbose "Found memtest86+: /boot/memtest"
echo "LABEL memtest" >> $conf.new
echo " MENU LABEL Memtest86+" >> $conf.new
diff --git a/main/syslinux/update-extlinux.conf b/main/syslinux/update-extlinux.conf
index 5a36a1f..6c83349 100644
--- a/main/syslinux/update-extlinux.conf+++ b/main/syslinux/update-extlinux.conf
@@ -45,4 +45,7 @@ xen_opts=dom0_mem=256M
# if you copy /usr/share/syslinux/reboot.c32 to /boot/, a menu entry will be auto-generated for it
-# a menu entry will also be auto-generated for /boot/memtest, if you download it and install it+# if you copy /usr/share/syslinux/hdt.c32 to /boot/, a menu entry will be auto-generated for it++# if you download and install /boot/memtest, then if HDT is present it will use it, else a separate+# menu entry will be auto-generated for memtest
--
1.8.3.1
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
[alpine-devel] [PATCH 7/9] main/syslinux: don't create backup when no changes
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
---
main/syslinux/update-extlinux | 10 ++++++++++main/syslinux/update-extlinux.conf | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 0ba4bbf..0499f5f 100755
--- a/main/syslinux/update-extlinux+++ b/main/syslinux/update-extlinux
@@ -134,6 +134,13 @@ for kernel in $(find /boot -name "vmlinuz-*" -type f); do
lst=$(($lst + 1))
done
+if [ -n "$password" ]; then+ echo "NOESCAPE 1" >> $conf.new+ echo "MENU MASTER PASSWD $password" >> $conf.new+ echo "" >> $conf.new+ chmod o-r $conf.new+fi+everbose "$lst entries found."
for entry in /etc/update-extlinux.d/*; do
@@ -147,6 +154,9 @@ if [ -f "/boot/hdt.c32" ]; then
everbose "Found Hardware Detection Tool: /boot/hdt.c32"
echo "LABEL hdt" >> $conf.new
echo " MENU LABEL Hardware info" >> $conf.new
+ if [ -n "$password" ]; then+ echo " MENU PASSWD" >> $conf.new+ fi echo " COM32 hdt.c32" >> $conf.new
if [ -f "/boot/memtest" ]; then
everbose "Found memtest86+: /boot/memtest"
diff --git a/main/syslinux/update-extlinux.conf b/main/syslinux/update-extlinux.conf
index 6c83349..947dfde 100644
--- a/main/syslinux/update-extlinux.conf+++ b/main/syslinux/update-extlinux.conf
@@ -49,3 +49,12 @@ xen_opts=dom0_mem=256M
# if you download and install /boot/memtest, then if HDT is present it will use it, else a separate
# menu entry will be auto-generated for memtest
++# optional passwd+# you can generate a MD5 password using: mkpasswd --salt=yy --method=md5+# you can generate a SHA1 password using: printf '$4$%s$%s$\n' xxxxxx $(printf xxxxxxpass | openssl sha1 -binary | base64 | sed 's/=$//')+# where yy are two "salt" characters from the set [./a-zA-Z0-9], and xxxxxx can be a longer "salt" from the same set+# if you assign a password, you should make this file world-unreadable+# if a password is assigned, the menu entries can't be edited at boot time, and HDT if present is password-protected+# you can also include "MENU PASSWD" in any custom entries you have in /etc/update-extlinux.d/+password=''
--
1.8.3.1
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
[alpine-devel] [PATCH 9/9] main/syslinux: update checksums and bump pkgrel
On Sat, 29 Jun 2013 16:41:20 -0400
Dubiousjim <dubiousjim@gmail.com> wrote:
> This set of patches makes the changes Natanael suggested (use cmp> instead of diff, eliminate the perl password utility), and bumps the> pkgrel. Some of the commits are the same as before, but this whole> set can replace what I sent earlier.> > Dubiousjim (9):> main/syslinux: fix/refactor initramfs> main/syslinux: use more specific COM32 (instead of KERNEL) for> mboot.c32 main/syslinux: use more specific LINUX (instead of KERNEL)> for kernels main/syslinux: reorganize menu layout> main/syslinux: add reboot entry> main/syslinux: add Hardware Detection Tool entry> main/syslinux: don't create backup when no changes> main/syslinux: hooks for bootloader password> main/syslinux: update checksums and bump pkgrel> > main/syslinux/APKBUILD | 14 +++----> main/syslinux/update-extlinux | 76> ++++++++++++++++++++++++++++----------> main/syslinux/update-extlinux.conf | 16 ++++++++ 3 files changed, 79> insertions(+), 27 deletions(-)>
Applied them all as-is. Thanks!
-nc
--
-nc
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---