torios-dev team mailing list archive
-
torios-dev team
-
Mailing list archive
-
Message #00654
Re: Debian ISO
Den 2016-04-29 kl. 22:04, skrev Nio Wiklund:
Den 2016-04-29 kl. 16:33, skrev Israel:
Hi Nio,
This is something odd for sure.
I have sent 230 to build.
This *should* fix the no swap problem
Let me know how it goes, I will be busy for a while
On 04/29/2016 08:33 AM, Nio Wiklund wrote:
... and hi once more,
I tried to repeat the case, when the ToriOS installer could find the
previous operating systems and list them in the grub menu. But I am
sorry, I failed. I tried to repeat everything with slight variations,
but it does not work. I think I used the same hardware and
configuration at least once, so it seems there was a 'positive
glitch'. Maybe there is some timing problem, a race condition or
similar, that causes this problem.
-o-
Finally I tried installing at the basic OBI level (to the whole
drive), and it worked well :-)
Best regards
Nio
Hi Israel,
Tested no-swap again.
The first bug is still there: the 'No_swap' entry in the menu does
nothing (cannot reset from a selected swap partition to no swap).
After installation I discovered:
1. This time the system discovered the other installed system and added
entries for it in the grub menu. (Single case or repeatable now?)
2. The swap entry in /etc/fstab is commented away, like it should be -
this was the important bug, and you squashed it :-) The dead 'No_swap'
entry in the menu is a minor bug.
-o-
This looks promising. I intend to do some testing tomorrow too, but I
think and hope there is no show-stopping bug right now. Please be very
careful with changes in the code now.
Best regards
Nio
Hi again,
I'm attaching the log file that belongs to the successful test of no-swap.
Best regards
Nio
[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
[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: 5039
[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/sda3
[confirm-partition]
/dev/sda3 was not mounted
[select-part2]
obi-root:/dev/sda3
obi-swap:/dev/sda6
[confirm-partition]
/dev/sda3 was not mounted
[confirm-partition]
/dev/sda6 was not mounted
[select-part2]
obi-root:/dev/sda3
[confirm-partition]
/dev/sda3 was not mounted
[confirm-partition]
/dev/sda6 was not mounted
[confirm-partition]
[confirm-partition] restart progress
[confirm-partition]
kill -9 5039
[confirm-partition]
kill -9 5038
[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
[functions]
[functions]
Found pid for Zenity in obi: 7689
[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
[confirm-partition]
/dev/sda3 was not mounted
[confirm-partition]
g
[confirm-partition]
Installing ToriOS-i386-jessie /dev/sda3
with no swap partition
[confirm-partition]
[confirm-partition]mklub ToriOS-i386-jessie /tarballs/ToriOS-i386-jessie.tar.xz /dev/sda3
[mkp]
ToriOS-i386-jessie
/tarballs/ToriOS-i386-jessie.tar.xz
[mkp]
Found pid for Zenity in mkp: 7689
[position_win]
Found 0x01400004 for the window to position
[mkp]
/tarballs/ToriOS-i386-jessie.tar.xz (the tarball) is expanded, syncing the drive
[mkp]
1 ext partitions:
[mkp]
Commenting out UUID=a3562b8d-6d65-49ac-bc3b-28c073fc2a22 none swap sw 0 0
[mkp]
rootpart=/dev/sda3
[mkp]
rootpart=/dev/sda3
OLD root UUID=09339ad0-25a7-4c0f-88fa-6592e0d95ccd
NEW root UUID=9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
[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=9c6aa1ab-1cd1-479d-bb1e-29debfb93c20 / ext4 errors=remount-ro 0 1
## swap was on /dev/sdd5 during installation
#UUID=a3562b8d-6d65-49ac-bc3b-28c073fc2a22 none swap sw 0 0
[mkp]
grub config file:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
else
search --no-floppy --fs-uuid --set=root 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
else
search --no-floppy --fs-uuid --set=root 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
fi
insmod png
if background_image /boot/grub/torios-grub.png; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'ToriOS GNU/Linux' --class torios --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9c6aa1ab-1cd1-479d-bb1e-29debfb93c20' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
else
search --no-floppy --fs-uuid --set=root 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
fi
echo 'Loading Linux 3.16.0-4-586 ...'
linux /boot/vmlinuz-3.16.0-4-586 root=UUID=9c6aa1ab-1cd1-479d-bb1e-29debfb93c20 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-586
}
submenu 'Advanced options for ToriOS GNU/Linux' $menuentry_id_option 'gnulinux-advanced-9c6aa1ab-1cd1-479d-bb1e-29debfb93c20' {
menuentry 'ToriOS GNU/Linux, with Linux 3.16.0-4-586' --class torios --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-advanced-9c6aa1ab-1cd1-479d-bb1e-29debfb93c20' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
else
search --no-floppy --fs-uuid --set=root 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
fi
echo 'Loading Linux 3.16.0-4-586 ...'
linux /boot/vmlinuz-3.16.0-4-586 root=UUID=9c6aa1ab-1cd1-479d-bb1e-29debfb93c20 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-586
}
menuentry 'ToriOS GNU/Linux, with Linux 3.16.0-4-586 (recovery mode)' --class torios --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-recovery-9c6aa1ab-1cd1-479d-bb1e-29debfb93c20' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
else
search --no-floppy --fs-uuid --set=root 9c6aa1ab-1cd1-479d-bb1e-29debfb93c20
fi
echo 'Loading Linux 3.16.0-4-586 ...'
linux /boot/vmlinuz-3.16.0-4-586 root=UUID=9c6aa1ab-1cd1-479d-bb1e-29debfb93c20 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-586
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
[mkp]
grub Custom entry file:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
[mkp]
[user-config]
Removed tarball user named: torios
[user-config]
Removing /mnt/home/torios
[user-config]
Added test-no-swap
[user-config]
the password entries match, go ahead ...
set password for test-no-swap
test-no-swap
Groups: audio,cdrom,plugdev,users,adm,video,dip,floppy,sudo,netdev
[user-config]
Autologin for: test-no-swap.
[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/test-no-swap for test-no-swap
[user-config]
changed gksu to sudo mode for test-no-swap
[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/test-no-swap/obi-installer.log
[mkp]
removed HTML tags from /mnt/home/test-no-swap/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
OS to install: ToriOS-i386-jessie
Menu Title: OS to install: ToriOS-i386-jessie
[clearOBI]
restart progress
[clearOBI]
kill -9 7689
[clearOBI]
kill -9 7688
[clearOBI]
kill -9 7274
[clearOBI]
kill -9 7685
<br /><b>[mkp]</b><br /> removed HTML tags from /root/obi-installer.log
Follow ups
References
-
Debian ISO
From: Israel, 2016-04-26
-
Re: Debian ISO
From: Cinque Port Computers, 2016-04-27
-
Re: Debian ISO
From: Israel, 2016-04-27
-
Re: Debian ISO
From: Cinque Port Computers, 2016-04-27
-
Re: Debian ISO
From: Israel, 2016-04-28
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-28
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-28
-
Re: Debian ISO
From: Israel, 2016-04-28
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-28
-
Re: Debian ISO
From: Israel, 2016-04-28
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-28
-
Re: Debian ISO
From: Israel, 2016-04-28
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-29
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-29
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-29
-
Re: Debian ISO
From: Israel, 2016-04-29
-
Re: Debian ISO
From: Nio Wiklund, 2016-04-29