← Back to team overview

torios-dev team mailing list archive

Re: Debian ISO

 

Hi again,

I made another install, this time with preselection via gparted and labels. I did not install the pae kernel.

It worked, except that the previous operating systems were not found (and not listed in the grub menu).

Best regards
Nio

Den 2016-04-29 kl. 10:23, skrev Nio Wiklund:
Hi Israel,

Testing again, this time revision 229.

Things appear much more stable now at the advanced OBI level.

Selecting root and swap partitions works :-)


Bug 1: Selecting 'no swap' does not work, the previously selected swap
partition remains selected. (minor bug, but annoying for people who
might want to install into pendrives, and want no swap). You might
consider removing the menu entry 'select No_swap' because it does not
work if swap was already selected.

But if there is no 'obiswap' partition, it is possible to skip selecting
a swap partition, which I did in this test.

-o-

After rebooting into the installed system, partitions in the target
drive (connected via USB) were recognized. I no longer need to run sudo
update grub :-)


Bug 2: But I got stuck with a '90 seconds delay' for some reason.

I made a system without swap, but the old swap entry in /etc/fstab is
still there, so I suspect that the system searched for a partition with
that UUID, and finally gave up.

So this is a bug. It does not work properly to create a system without
swap. In such cases the swap entry in /etc/fstab should be commented
away (better than removing it because it provides a template for manual
fixing afterwards).

Best regards
Nio

Den 2016-04-29 kl. 01:29, skrev Israel:
Hi Nio
(inlines)
On 04/28/2016 05:42 PM, Nio Wiklund wrote:
Hi Israel,
[replying inline]
Best regards
Nio

Den 2016-04-28 kl. 22:26, skrev Israel:
...

I hope to gradually get used to these new(?) bash built-in commands.
I think they are better to use in situations like ours where we are
trying to make things fast on old computers.

......

It makes sense when you tell me these commands. But sometimes I'm
losing all hope, when we are fighting bugs in code that used to work.

Yes, but it worked for the terminal + dialog version
And now (revision 229) I tested and things work
Anyhow.... with that code gone *revision 228* should completely fix
this
issue.  I will test it as well.  I have been testing the basic
installer
mostly, so I will test advanced on this one only, since I modified only
the advanced code.

Let me know if it works for USB drives, as well.

The OBI-istalleer is getting better :-)

Now it was possible to get into gparted via the built-in sequence. I
could add the labels obiroot and obiswap and continue with the
installation. The installation worked, and the installed system works.

But there are still bugs.

1. I cannot select root partition and swap partition manually (in the
zenity menu). It looks like I select, but nothing is changed. The
original selection remains. If root and/or swap are not selected by
the partition labels, they are impossible to select. At least I don't
know how to do it with the OBI-installer. It seems the mechanism to
store or propagate the selection from the menu has failed somehow.
This worked before you started to fix the problem of 'moving the
desktop' with wmctrl.

Yes, I found the problem!!!

select-part2

HERE is my fix.  It took me a while, because the code you had worked,
but made no sense at first until I tested things quite a few ways until
I discovered what you meant to do (at least I think)

You were making sure that the 'X' in sdX is a letter

## check answer for something like sda
## s="${ans:0:1}"
## d="${ans:1:1}"
## a="${ans:2:1}"
## [[ "${ans:2:1}" == [a-zA-Z] ]] checks to make sure it is a letter
if [[ "${ans:1:1}" == "d" ]] && [[ "${ans:2:1}" == [a-zA-Z] ]]
then
###etc
fi

This is the code that was there
if [ "${ans:1:1}" == "d" ] && [ "${ans:2:1}" '>' "_" ] && [ "${ans:2:1}"
'<' "~" ]
then
## etc
fi

Which made no sense to me....

I also replaced (uses 2 external programs twice)
rootpart=$(grep obi-root "$partitions"|cut -d: -f2)
swappart=$(grep obi-swap "$partitions"|cut -d: -f2)
With
while read LINE || [ "$LINE" ]
do
    case $LINE in
      obi-root:*)rootpart="${LINE/*:}";;
      obi-swap:*)swappart="${LINE/*:}";;
      *);;
    esac
done < "$partitions"
which only uses read (1 program for both)

I have tested with the target drive connected internally and
externally. It makes no difference in this case. I would say that this
is a show-stopper. I don't think we should abandon selection of
partitions via the zenity menus. It is awkward to use gparted for the
selection, when there is no [other] editing of partitions.

Fully agree
2. Already existing operating systems in internal drives (including
eSATA), but not in USB drives, are recognized and added to the grub
menu. This problem remains, but we can live with it. (It is no
show-stopper.)

I might try to get this working better... but for now if you try 229 and
things work we can sigh a big sigh of relief

This has been a fun experience learning what OBI does and converting it
to use zenity..  quite a neat bit of work involved!

But, I think we are getting closer to the finish line!!  A few more days
until May... hopefully we can get the last bits in place.

As long as no show stoppers exist we can release and I can test on the
unstable branch more.


--
Regards







[starter]
 

[functions]
 
Tarball path: /tarballs
zmktbl to make the tarballs
OBI path: /usr/share/OBI

[functions]
 
OS to install: ToriOS-i386-jessie
Menu Title: OS to install: ToriOS-i386-jessie

[functions]
 

[functions]
 Found pid for Zenity in obi: 4728

[position_win]
 Found 0x01400004 for the window to position

[mkctrl]
 mkctrl()--->obi_system=ToriOS-i386-jessie
tarball=
rootpart=
swappart=


[mkctrl]
 [mkctrl]Selected:/usr/share/OBI/selected
OBI directory:/usr/share/OBI
Tarball path:/tarballs

[mkpxpy]
 Selected Tarball: /tarballs/ToriOS-i386-jessie.tar.xz
selecting mkpxpy (with swap)

[confirm-partition]
 mkctrl()--->obi_system=ToriOS-i386-jessie
tarball=/tarballs/ToriOS-i386-jessie.tar.xz
rootpart=
swappart=


[confirm-partition]
 [mkctrl]Selected:/usr/share/OBI/selected
OBI directory:/usr/share/OBI
Tarball path:/tarballs

[partition-help]
 RAM  size:4096 MibiBytes

[partition-help]
 SWAP size:4838 MibiBytes

[partition-help]
 root: /dev/sda8

[partition-help]
 swap: /dev/sda2

[confirm-partition]
 /dev/sda8 was not mounted

[confirm-partition]
 /dev/sda2 was not mounted

[confirm-partition]
 Installing ToriOS-i386-jessie  /dev/sda8
with swap  /dev/sda2

[confirm-partition]
 [confirm-partition]mklub ToriOS-i386-jessie /tarballs/ToriOS-i386-jessie.tar.xz /dev/sda8 /dev/sda2

[mkp]
 ToriOS-i386-jessie
/tarballs/ToriOS-i386-jessie.tar.xz


[mkp]
 Found pid for Zenity in mkp: 4728

[position_win]
 Found 0x01400004 for the window to position

[mkp]
 return value was: 0

[mkp]
 /tarballs/ToriOS-i386-jessie.tar.xz (the tarball) is expanded, syncing the drive

[mkp]
 1 ext partitions: 09339ad0-25a7-4c0f-88fa-6592e0d95ccd 

[mkp]
 a3562b8d-6d65-49ac-bc3b-28c073fc2a22
1 ext partitions: 09339ad0-25a7-4c0f-88fa-6592e0d95ccd 

[mkp]
 Use existing swap partition /dev/sda2 - keep its UUID

[mkp]
 rootpart=/dev/sda8

[mkp]
 swappart=/dev/sda2

[mkp]
 OLD swap uuid=a3562b8d-6d65-49ac-bc3b-28c073fc2a22

[mkp]
 NEW swap UUID=6d8464f4-2752-48eb-9ffb-c88a5aba1b6e

[mkp]
 rootpart=/dev/sda8
OLD root UUID=09339ad0-25a7-4c0f-88fa-6592e0d95ccd
NEW root UUID=ffa52a52-8422-48a2-9cfa-204551e3365e

[mkp]
 (SWAP UUIDs)changed a3562b8d-6d65-49ac-bc3b-28c073fc2a22 to 6d8464f4-2752-48eb-9ffb-c88a5aba1b6e in /mnt/etc/fstab0

[mkp]
 installed /etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#                
# / was on /dev/sdd1 during installation
UUID=ffa52a52-8422-48a2-9cfa-204551e3365e /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdd5 during installation
UUID=6d8464f4-2752-48eb-9ffb-c88a5aba1b6e none            swap    sw              0       0

[mkp]
 Filename				Type		Size	Used	Priority
/dev/sda2                              	partition	4954516	0	3

[user-config]
 Removed tarball user named: torios

[user-config]
 Removing /mnt/home/torios

[user-config]
 Added tester

[user-config]
 the password entries match, go ahead ...

set password for tester

tester
Groups: audio,cdrom,plugdev,users,adm,video,dip,floppy,sudo,netdev

[user-config]
 No autologin for: tester.

[user-config]
 Updating: xdg-dirs

[user-config]
 copied menumethod-lister

[position_win]
 Found 0x01400004 for the window to position

[user-config]
 removed menumethod-lister

[user-config]
 copied /etc/skel

[user-config]
 chown recursivley /home/tester for tester

[user-config]
 changed gksu to sudo mode for tester

[user-config]
 Computer supports PAE

[user-config]
 No install PAE chosen.

[mkp]
 Installing Bootloader

[functions]
 

[list_drives]
 DRIVE: Name: ata-ST320LT007-9ZV142  Dev: /dev/sda  Size: 320GB

[list_drives]
 DRIVE: Name: usb-Kanguru_FlashBlu   Dev: /dev/sdb  Size: 8011MB

[list_drives]
 DRIVE: Name: ata-ST320LT007-9ZV142  Dev: /dev/sda  Size: 320GB

[list_drives]
 DRIVE: Name: usb-Kanguru_FlashBlu   Dev: /dev/sdb  Size: 8011MB

[list_drives]
 DRIVE: Name: ata-ST320LT007-9ZV142  Dev: /dev/sda  Size: 320GB

[list_drives]
 DRIVE: Name: usb-Kanguru_FlashBlu   Dev: /dev/sdb  Size: 8011MB

[list_drives]
 DRIVE: Name: ata-ST320LT007-9ZV142  Dev: /dev/sda  Size: 320GB

[list_drives]
 DRIVE: Name: usb-Kanguru_FlashBlu   Dev: /dev/sdb  Size: 8011MB

[functions]
 Destination: /dev/sda

[functions]
 Bootloader destination: /dev/sda

[functions]
 unmounted all filesystems

[mkp]
 saved /root/obi-installer.log as /mnt/home/tester/obi-installer.log

[mkp]
 removed HTML tags from /mnt/home/tester/obi-installer.log

[mkp]
 Not rebooting.

[mkp]
 Check the Result

[functions]
 
OS to install: ToriOS-i386-jessie
Menu Title: OS to install: ToriOS-i386-jessie
OS to install: ToriOS-i386-jessie
Menu Title: OS to install: ToriOS-i386-jessie
[clearOBI]
 restart progress
[clearOBI]
 kill -9 4728
[clearOBI]
 kill -9 4727
[clearOBI]
 kill -9 4313
[clearOBI]
 kill -9 4724
<br /><b>[mkp]</b><br /> removed HTML tags from /root/obi-installer.log

Follow ups

References