[arch-general] Syslinux Installer / Update Script - Testers Needed
Hello Community, Over the last few weeks I have been working on Syslinux support for the installer. With the help Thomas and Dieter I am nearing the completion of this project. As part of this project, I have written a script that will help install and update Syslinux (similar to that of grub-install). Some key features of the script: syslinux-install_update.sh * Install Syslinux to the FS + Partition Boot Loader (extlinux --install /boot/syslinux) * Install Syslinux MBR * Detect and optionally set the boot flag on the boot partition * Update Syslinux – copy files and execute (extilnux --update /boot/syslinux) * Support for GPT disks * Support for RAID configurations The goal is to include this script in the official Syslinux package. Therefore we need your help to test it. syslinux-install_update.sh -i -a -m ..... install Syslinux, set the boot flag (if needed), and install the MBR We need tests for the following setups: / + /boot on the *same* partition / + /boot on the *same* partition - RAID /boot + root on *separate* partition /boot + root on *separate* partition - RAID All of the above using but using the GPT partition layout NOTE: This is an alpha/beta stage script. The script modifies the first 440 bytes of the disk (using dd) and the partition table (using either sfdisk or sgdisk). Although the script should be safe to run, I am not responsible for any data loss that may occur. Let us know the following: * Did the script work for you? * What was your partition setup? (see above) * What version did you use? * If the script did not work, please provide as much information as possible Get the script here: https://gist.github.com/772138 Syslinux Sample Config File: http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys... The Syslinux package in testing includes the above configuration file. Cheers, pyther
On 01/15/11 at 09:52pm, Matthew Gyurgyik wrote:
Hello Community,
Over the last few weeks I have been working on Syslinux support for the installer. With the help Thomas and Dieter I am nearing the completion of this project. As part of this project, I have written a script that will help install and update Syslinux (similar to that of grub-install).
Some key features of the script: syslinux-install_update.sh * Install Syslinux to the FS + Partition Boot Loader (extlinux --install /boot/syslinux) * Install Syslinux MBR * Detect and optionally set the boot flag on the boot partition * Update Syslinux – copy files and execute (extilnux --update /boot/syslinux) * Support for GPT disks * Support for RAID configurations
The goal is to include this script in the official Syslinux package. Therefore we need your help to test it.
syslinux-install_update.sh -i -a -m ..... install Syslinux, set the boot flag (if needed), and install the MBR
We need tests for the following setups: / + /boot on the *same* partition / + /boot on the *same* partition - RAID /boot + root on *separate* partition /boot + root on *separate* partition - RAID All of the above using but using the GPT partition layout
NOTE: This is an alpha/beta stage script. The script modifies the first 440 bytes of the disk (using dd) and the partition table (using either sfdisk or sgdisk). Although the script should be safe to run, I am not responsible for any data loss that may occur.
Let us know the following: * Did the script work for you? * What was your partition setup? (see above) * What version did you use? * If the script did not work, please provide as much information as possible
Get the script here: https://gist.github.com/772138 Syslinux Sample Config File: http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys...
The Syslinux package in testing includes the above configuration file.
Cheers, pyther
I've got an old box i use as a testing box.. I'll give it a shot tomorrow on it and in qemu
On Sat, 15 Jan 2011 21:52:03 -0500 Matthew Gyurgyik <pyther@pyther.net> wrote:
Hello Community,
Over the last few weeks I have been working on Syslinux support for the installer. With the help Thomas and Dieter I am nearing the completion of this project. As part of this project, I have written a script that will help install and update Syslinux (similar to that of grub-install).
Some key features of the script: syslinux-install_update.sh * Install Syslinux to the FS + Partition Boot Loader (extlinux --install /boot/syslinux) * Install Syslinux MBR * Detect and optionally set the boot flag on the boot partition * Update Syslinux – copy files and execute (extilnux --update /boot/syslinux) * Support for GPT disks * Support for RAID configurations
The goal is to include this script in the official Syslinux package. Therefore we need your help to test it.
syslinux-install_update.sh -i -a -m ..... install Syslinux, set the boot flag (if needed), and install the MBR
We need tests for the following setups: / + /boot on the *same* partition / + /boot on the *same* partition - RAID /boot + root on *separate* partition /boot + root on *separate* partition - RAID All of the above using but using the GPT partition layout
NOTE: This is an alpha/beta stage script. The script modifies the first 440 bytes of the disk (using dd) and the partition table (using either sfdisk or sgdisk). Although the script should be safe to run, I am not responsible for any data loss that may occur.
Let us know the following: * Did the script work for you? * What was your partition setup? (see above) * What version did you use? * If the script did not work, please provide as much information as possible
Get the script here: https://gist.github.com/772138 Syslinux Sample Config File: http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys...
The Syslinux package in testing includes the above configuration file.
Cheers, pyther
did you get in touch with upstream? what do they think about this? maybe they want to include it aswell. Dieter
On Sat, 15 Jan 2011 21:52:03 -0500 Matthew Gyurgyik <pyther@pyther.net> wrote:
Hello Community,
Over the last few weeks I have been working on Syslinux support for the installer. With the help Thomas and Dieter I am nearing the completion of this project. As part of this project, I have written a script that will help install and update Syslinux (similar to that of grub-install).
Some key features of the script: syslinux-install_update.sh * Install Syslinux to the FS + Partition Boot Loader (extlinux --install /boot/syslinux) * Install Syslinux MBR * Detect and optionally set the boot flag on the boot partition * Update Syslinux – copy files and execute (extilnux --update /boot/syslinux) * Support for GPT disks * Support for RAID configurations
The goal is to include this script in the official Syslinux package. Therefore we need your help to test it.
syslinux-install_update.sh -i -a -m ..... install Syslinux, set the boot flag (if needed), and install the MBR
We need tests for the following setups: / + /boot on the *same* partition / + /boot on the *same* partition - RAID /boot + root on *separate* partition /boot + root on *separate* partition - RAID All of the above using but using the GPT partition layout
NOTE: This is an alpha/beta stage script. The script modifies the first 440 bytes of the disk (using dd) and the partition table (using either sfdisk or sgdisk). Although the script should be safe to run, I am not responsible for any data loss that may occur.
Let us know the following: * Did the script work for you? * What was your partition setup? (see above) * What version did you use? * If the script did not work, please provide as much information as possible
Get the script here: https://gist.github.com/772138 Syslinux Sample Config File: http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys...
The Syslinux package in testing includes the above configuration file.
Cheers, pyther
Just ran the script on my virtualbox archserver. And afterwards on a virtualbox archlinux. Unfortunately it's not working. I get the error: Could not find /boot/syslinux is /boot mounted? Is syslinux installed? I only installed package syslinux and then ran the script. ./syslinux.sh -i -m -a The usage mentions the use of a -c switch, but this does not change anything. Actually I can see it tries to find the path //boot/syslinux when using -c / Guess the switch is only used when you want to install on a mounted chroot system. I am running the script from within the system I wish to install it on. pacman -Q syslinux returns syslinux 4.03-1 The folder /boot/syslinux in reality does not exist in the system yet. So that is probably the reason for the error I get. Is it intentional that the script checks for /boot/syslinux? or should that have been just /boot? If you need additional information, just let me know. BR -- \Madeye - The box said to install Windows 95 or better, so I installed ARCH Linux! - System Setup: AMD64 X2 6400+ with 4GB ram and 1910GB harddrive. Running Arch Linux x86_64 ---------------------------------------------------------- - Registered Linux user #167944 since 2000-02-28 (。◕‿◕。) - ---------------------------------------------------------- - Jabber: @@ madeye at jabber dot org @@ - ----------------------------------------------------------
On 01/19/2011 08:54 AM, Madeye wrote:
Just ran the script on my virtualbox archserver. And afterwards on a virtualbox archlinux. Unfortunately it's not working. I get the error:
Could not find /boot/syslinux is /boot mounted? Is syslinux installed?
I only installed package syslinux and then ran the script. ./syslinux.sh -i -m -a
The usage mentions the use of a -c switch, but this does not change anything. Actually I can see it tries to find the path //boot/syslinux when using -c / Guess the switch is only used when you want to install on a mounted chroot system.
I am running the script from within the system I wish to install it on.
pacman -Q syslinux returns syslinux 4.03-1
The folder /boot/syslinux in reality does not exist in the system yet. So that is probably the reason for the error I get. Is it intentional that the script checks for /boot/syslinux? or should that have been just /boot?
If you need additional information, just let me know.
BR The script intentionally checks for /boot/syslinux because com32 modules get copied their.
Syslinux from testing contains an example config file, /boot/syslinux/syslinux.cfg, therefore creating /boot/syslinux. You can either install the syslinux package from testing or you can mkdir /boot/syslinux and create syslinux.cfg (http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys...). Make sure to edit the kernel options (root, nomodeset, etc..) in the config file. pyther
On 01/15/2011 09:52 PM, Matthew Gyurgyik wrote:
Hello Community,
Over the last few weeks I have been working on Syslinux support for the installer. With the help Thomas and Dieter I am nearing the completion of this project. As part of this project, I have written a script that will help install and update Syslinux (similar to that of grub-install).
Some key features of the script: syslinux-install_update.sh * Install Syslinux to the FS + Partition Boot Loader (extlinux --install /boot/syslinux) * Install Syslinux MBR * Detect and optionally set the boot flag on the boot partition * Update Syslinux – copy files and execute (extilnux --update /boot/syslinux) * Support for GPT disks * Support for RAID configurations
The goal is to include this script in the official Syslinux package. Therefore we need your help to test it.
syslinux-install_update.sh -i -a -m ..... install Syslinux, set the boot flag (if needed), and install the MBR
We need tests for the following setups: / + /boot on the *same* partition / + /boot on the *same* partition - RAID /boot + root on *separate* partition /boot + root on *separate* partition - RAID All of the above using but using the GPT partition layout
NOTE: This is an alpha/beta stage script. The script modifies the first 440 bytes of the disk (using dd) and the partition table (using either sfdisk or sgdisk). Although the script should be safe to run, I am not responsible for any data loss that may occur.
Let us know the following: * Did the script work for you? * What was your partition setup? (see above) * What version did you use? * If the script did not work, please provide as much information as possible
Get the script here: https://gist.github.com/772138 Syslinux Sample Config File: http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys...
The Syslinux package in testing includes the above configuration file.
Cheers, pyther Hello again.
I have not received much feedback about this script. Over the last few weeks I have been working on improving this script. Huge thanks to falconindy! He has written code which uses hexdump to determine if a disk is using the GPT partition table and code which detects if a partition is marked as active. Prior to those code I was greping and awking the output of fdisk! Notable Changes * Use hexdump to determine if boot flag is set * Use hexdump to determine partition type (GPT) * Copy/Symlink pci.ids to /boot/syslinux * Lots of rewritten code Much of the detection code has changed. So if you tested before, please test again! Syslinux-install_update: https://gist.github.com/772138 Sample Usage: syslinux-install_update -iam (install, set /boot part(s) as active, install mbr) The syslinux package in testing has a sample config. If you don't want to use the package from testing you can get the config from here: http://projects.archlinux.org/svntogit/packages.git/plain/syslinux/trunk/sys... Tell us as much information as possible about your setup (see original message) and whether or not the script worked. Thanks, pyther P.S. Thanks to e36freak who has greatly helped improve my bash syntax and the syntax in this script!
participants (4)
-
Dieter Plaetinck
-
J. W. Birdsong
-
Madeye
-
Matthew Gyurgyik