Re: syslinux.cfg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 15 Feb 2017 20:38:05 -0700, Leonid Isaev wrote:
>Let's assume that you have the following:
>* /dev/sda1 -- mounted at /boot when you boot your ArchLinux system
>* /dev/sdb1 -- the same for Foo
>* syslinux is installed on /dev/sda1 (it is bootable).
>
>What I usually do, is mkdir /dev/sda1/{arch,foo} and rsync
>kernels/initrds from /dev/sda1 to arch/ and from /dev/sdb1 to foo/.
>Then, modify syslinux.cfg so that entries like LINUX ../vmlinuz-linux
>become LINUX ../arch/vmlinuz-linux and similarly for INITRD. Finally,
>in your Arch's and Foo's fstabs, bind-mount arch/ and foo/ to
>respective /boot's (if desired of course, as you don't need to
>have /boot mounted).  This way you get the menu that you mentioned
>first.
>
>You no longer need data in /dev/sdb1 and can free the partition.

Thank you,

that is nice workaround, with just one pitfall.
If I want to maintain the other Linux in a systemd-nspawn container, I
won't be able to upgrade the kernel anymore [1]. Is there a workaround
for this, too? Perhaps I'm just using systemd-nspawn incorrect :D. I
should read more about systemd-nspawn ;).

I wonder how systemd-nspawn works, if e.g. /home would be on a
separated partition. Some days back I needed to use chroot, because
installing GRUB (GRUB itself, not the grub package/s) didn't work with
systemd-nspawn in the way I'm using systemd-nspawn.

However, I most likely will use the workaround you mentioned.

Regards,
Ralf

[1]
[root@archlinux ~]# grep PRETTY /etc/os-release 
PRETTY_NAME="Arch Linux"
[root@archlinux ~]# grep -v ^# /etc/fstab
/dev/sda9       /               ext4  rw,relatime,data=ordered 0 1

/dev/sda10      none            swap  defaults                 0 0

/dev/sda11      /mnt/music      ext4  defaults,noatime         0 2
/dev/sda5       /home/s1.music  ext4  defaults,noatime         0 2

[root@archlinux ~]# systemd-nspawn -qD /mnt/moonstudio
[root@moonstudio ~]# grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu 16.04.2 LTS"
[root@moonstudio ~]# grep -v ^# /etc/fstab

/dev/sdb11      /               ext4    rw,relatime               0       1
/dev/sda10      none            swap    sw                        0       0
/dev/sdb7       none            swap    sw                        0       0
/dev/sda9       /mnt/archlinux  ext4    defaults                  0       2
/dev/sdb15      /mnt/winos7     ext4    defaults,noatime          0       2
[root@moonstudio ~]# ls -hl /mnt/archlinux/
total 0
[root@moonstudio ~]# logout
[root@archlinux ~]# systemd-nspawn -bqD /mnt/moonstudio
[snip]
[root@moonstudio ~]# ls -hl /mnt/archlinux/
total 0
[root@moonstudio ~]# ls -hl /mnt/winos7/
total 0



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux