12.2. Testing iso based on Linux Live Kit

Global announcements
simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: 12.2. Testing iso based on Linux Live Kit

Postby simargl » 05 Nov 2013, 15:02

Anyone tested this new grub4dos gui?

I changed list of supported directory names to:
for D in alphaos alpha alphaos.usb alphaos-usb backup; do...

do you use some name that's not in this list, so I could add it?

Any ideas how to fix that problem with from boot code? I could upload

new iso when that is solved, also before new version plan is to add support for boot code fresh,

to prevent loading of save file.

Marv
Proficient
Posts: 81
Joined: 16 May 2013, 16:42

Re: 12.2. Testing iso based on Linux Live Kit

Postby Marv » 05 Nov 2013, 18:02

added alphaos_live into the list and ran that grub4dosconfig. Here is the entry it created for my alphaos_live directory in my boot partition:

Code: Select all

title AlphaOS (sda1/alphaos_live)
  uuid 8313-20CB
  kernel /alphaos_live/boot/vmlinuz root=/dev/sda1 ro from=/alphaos_live
  initrd /alphaos_live/boot/initrfs.img

looks ok, uuid is correct, have booted from that entry before but without the ro (??) bootcode.

Here is my manually created item I usually boot from:

Code: Select all

title alphaos (live linux test)
  find  --set-root  --ignore-floppies  --ignore-cd   /alphaos_live/boot/initrfs.img
  kernel  /alphaos_live/boot/vmlinuz   from=/alphaos_live toram
  initrd  /alphaos_live/boot/initrfs.img

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: grub4dosconfig and new alphaos

Postby Scooby » 05 Nov 2013, 18:10

# alphaos

Code: Select all

  for D in alphaos alphaOS Alphaos AlphaOS alphaos.usb alphaos-usb; do
    if [ -f $TOPDIR/$D/boot/vmlinuz -a -f $TOPDIR/$D/alpha*sb ];then
      LINUXOPTIONS="$LINUXOPTIONS from=/$D"
      KEYFILE="/$D/boot/initrfs.img,/$D/boot/vmlinuz"
      ITEM="$PART$KEYFILE|$(read_distro_specs $TOPDIR)"
      FULLINSTS="$FULLINSTS
      $ITEM"
     break
    fi
  done


How about inserting a break in for loop, After first found exit.

If you want it to work with several frugal installations I think you must
change LINUXOPTIONS into an array. maybe a lot of code change though?

or somehting like LINUXOPTIONS="root=/dev/sda1 ro from=/AlphaOS|from=/Alphaos" or even
LINUXOPTIONS="root=/dev/sda1 ro from=/AlphaOS|root=/dev/sda1 ro from=/Alphaos"

and then do some string handling if you find pipe-character

This is suggested without realy looking into code.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: 12.2. Testing iso based on Linux Live Kit

Postby simargl » 05 Nov 2013, 19:19

These lines from after 1605 are when menu.lst gets written, that is part under else statement

Code: Select all

  *)
    setroot   >>  $MENU
    if [ "$KBASE2" = "" ]; then
      echo "  kernel $KDIR/$KBASE root=/dev/$PART $LINUXOPTIONS" >>  $MENU
    else
      P=$PART
      echo "  kernel $KDIR/$KBASE2 root=/dev/$P $LINUXOPTIONS" >>  $MENU
      echo "  initrd $KDIR/$KBASE" >>  $MENU
    fi
  ;;

LINUXOPTIONS has ro by default, and this line from for loop LINUXOPTIONS="$LINUXOPTIONS from=/$D" just adds new from for every $D it finds, if I set it to LINUXOPTIONS="from=/$D", it will add last found $D to all entries. Maybe using LINUXOPTIONS here was wrong, but how to set that kernel boot parameter for individual entry that will match name of its directory.

Edit:
Solved here https://bitbucket.org/simargl/alphaos/c ... 39e79df3e0


Return to “Announcements”

Who is online

Users browsing this forum: No registered users and 4 guests

cron