WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bootman - boot versions on one drive/partition  (Read 96 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 586
  • ~.~
bootman - boot versions on one drive/partition
« on: September 17, 2024, 02:20:19 AM »
pokeing around in the repo i found http://tinycorelinux.net/14.x/x86/tcz/bootman.tcz.info

(i suspected because of the small size 
"Size:      4.0K")
it was some scripts in an extension

so i had a look &
Code: [Select]
# download extension
wget http://tinycorelinux.net/14.x/x86/tcz/bootman.tcz.info
# create a temporary directory
mkdir tczx
# mount the extension
sudo mount -o loop ./bootman.tcz ./tczx
#  find files
find ./tczx/ -type f
find shows one file
Quote
tczx/usr/local/sbin/bootman

Code: [Select]
less tcz/usr/local/sbin/bootman
it appears to use syslinux ....
Quote
Comments:      Allows the user to boot into numerous versions of
                TCL using a single drive/partition and separate
                mydata.tgz and/or persistent opt/home directories
                sudo bootman VERSION [PLATFORM=x86_64]
                VERSION=5 or more, PLATFORM=x86 or x86_64 (x64)
                ONLY INTENDED for default boot loader; grub not
                yet implemented and PXE not intended here.

i wander if any one (other than the author ;p ) has tested this script/approach ??

which seams conceptually similar to the method mentioned hear
https://forum.tinycorelinux.net/index.php/topic,22546.msg141259.html#msg141259
and others @ https://forum.tinycorelinux.net/index.php/topic,26464.0.html


Offline Leee

  • Full Member
  • ***
  • Posts: 111
Re: bootman - boot versions on one drive/partition
« Reply #1 on: September 17, 2024, 11:45:42 PM »
I haven't played around with bootman.tcz at all but I just use grub and have a menu entry for each Tiny Core installation on the device.  The disk layout is structured like this:
Code: [Select]
boot
     core15.0
              tce
                    optional
              tce64
                    optional

     core14.0
              tce
                    optional
              tce64
                    optional
and so on. Your computer can be a Tiny Core museum.    :)

In addition to the simplified view above, there are also "ondemand" and "upgrade" directories and all that happiness in the expected places.

Both the x86 and x86_64 versions of vmlinuz, rootfs.gz and modules.gz live at the "coreXX.X" level.  The "tce" directories are used for x86 while the "tce64" directories are used for x86_64.
The grub directory can be under boot or, as is my current habit, on the EFI partition under EFI/BOOT.

I don't use persistent home, so each older version has a mydata.tgz snapshot of the last time I used it, a copy of which was brought forward to the next newer version.


core 15.0 x86_64

Offline Leee

  • Full Member
  • ***
  • Posts: 111
Re: bootman - boot versions on one drive/partition
« Reply #2 on: September 18, 2024, 12:02:29 AM »
Here's a (pared down) sample grub.cfg for the above setup (attached).
core 15.0 x86_64