You are not logged in.

#1 2015-10-24 18:49:35

OmegaTwiddle
Member
Registered: 2015-08-24
Posts: 3

Syslinux config wrong partition selected. Operator error?

I've been executing a fresh install (tried twice to verify the bug and installation procedure), and have noticed that when I run "syslinux-install_update -i -a -m" it places the wrong partition name in /boot/syslinux/syslinux.cfg. Otherwise, it's a very quick and easy install. Is this a bug, or am I not installing properly? Output below, this happened when I installed with just 1 ext4 partition (/dev/sda1) as well as 2 partitions, an ext4 and a swap (/dev/sda1 and /dev/sda2 respectively).


fdisk -l shows
Disk /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8212A450-16D7-4CD6-B202-4D5360499C8F

Device         Start       End   Sectors Size Type
/dev/sda1       2048 125831167 125829120  60G Linux filesystem
/dev/sda2  125831168 136316927  10485760   5G Linux swap


Relevant output from /boot/syslinux/syslinux.cfg. I modified it to use /dev/sda1 and it works like a charm. However, it originally used /dev/sda3.
LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda1 rw
    INITRD ../initramfs-linux.img

LABEL archfallback
    MENU LABEL Arch Linux Fallback
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda1 rw
    INITRD ../initramfs-linux-fallback.img

Offline

#2 2015-10-25 01:31:30

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Syslinux config wrong partition selected. Operator error?

OmegaTwiddle wrote:

I've been executing a fresh install (tried twice to verify the bug and installation procedure), and have noticed that when I run "syslinux-install_update -i -a -m" it places the wrong partition name in /boot/syslinux/syslinux.cfg.

Script syslinux-install_update does not touch syslinux.cfg config. The config file is created during syslinux package installation. Here is where it comes from https://projects.archlinux.org/svntogit … s/syslinux


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2015-10-25 02:08:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Syslinux config wrong partition selected. Operator error?

The wiki instructions for syslinux linked from the beginner's guide:

In the simplest case, the partition name in the root parameter needs to be replaced. Change /dev/sda2 to point to the correct root partition.

Not a bug.  Not an installation issue.  Moved to N.C.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-10-26 03:13:02

OmegaTwiddle
Member
Registered: 2015-08-24
Posts: 3

Re: Syslinux config wrong partition selected. Operator error?

Ah got it - thanks for the replies.

Am I the only one who is surprised by this? I would have expected the syslinux package install to either not configure this file (leaving it to be built by a later-run script), or configure it based on my system (maybe making an entry for all currently mounted partitions?). I incorrectly assumed running the script generated that config, but even so I'm even more surprised by the static incorrect default /boot/syslinux/syslinux.cfg file.

Offline

#5 2015-10-26 03:49:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Syslinux config wrong partition selected. Operator error?

I wouldn't say you're the only one that's surprised by it, but it is a very small group. Mostly people who are used to other distros doing everything for them.

Offline

#6 2015-10-26 13:48:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Syslinux config wrong partition selected. Operator error?

I can understand why this could be a surprise - but you should get used to this with arch.  You are expected to configure things yourself.  Much software ships with *default* configs.  But there is no way a single set of defaults could work for everyone.  So you will also see that nearly every page on our wiki that is for a package or tool has at least the two sections "Installing <tool>" and "Configuring <tool>".  When these exist, the second is not optional.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB