Ask your questions here.
Post a reply

refractainstaller as a text file

Wed Oct 22, 2014 3:58 pm

Is there an URL where i can download the refractainstaller as a text file instead of a *deb?
I only find *deb files if looking through these links:
official-and-unofficial-download-sites-t360.html
also looked at github

The CLI installer, assuming that one still exists.

Are there chances it will work with SystemRescue ?
http://www.sysresccd.org/SystemRescueCd_Homepage
( a funtoo and hence gentoo based distribution )

Re: refractainstaller as a text file

Wed Oct 22, 2014 4:21 pm

Oh. You might be able to use the installer with a gentoo live dvd. You'd probably need to change some things, but basically, all you're doing is rsyncing the system to hard drive and then installing a bootloader.

Here are files from the latest version (9.1.1). You can set the path for the excludes list in the config file, which normally goes into that directory I dare not name. The path to the config file is set in the head of the main script, in case you want to change that. Sorry, no -c option on this one.

refractainstaller
https://gist.github.com/fsmithred/2ebdeb384314e9ad99a9

refractainstaller.conf
https://gist.github.com/fsmithred/388f2e94067f98f33b05

installer_exclude.list
https://gist.github.com/fsmithred/b38edfaf3c0863e57cc2

Re: refractainstaller as a text file

Wed Oct 22, 2014 4:53 pm

Thanks for the files and the info.

the config file, which normally goes into that directory I dare not name.

on the floor, bro, on the floor.

I seriously plan to try it (be it funtoo or with gentoo Live too, i don't care).
It might take a few days or even weeks, but i will do it.

-
Other topic:
If you got refracta iso's *without* systemd which need to be tested, please announce them clearly, i will go for it (say in the announcement section, but sure in a separate thread). I read most of the posts, but often lose focus (don't understand everything, am tired, am not that muchinterested in computing anymore, etc).
Well: announce the systemd ones too, but i probably won't test them (others will, of course).

Re: refractainstaller as a text file

Thu Oct 23, 2014 12:34 am

I get this warning:
Code:

root@sysresccd /home/user % ./refractainstaller
###   WARNING: Not running from live-CD or live-USB   ###
###   or unsupported configuration. Be sure you know   ###
###   what you are doing. This may not work.      ###

  Press ENTER to proceed or ctrl-c to exit.



Searching for it in refractainstaller, i find:
Code:

if ! [[ -d /lib/live/mount/medium ]] ; then

and of course it is not there:
Code:

root@sysresccd /home/user % ls /lib/live
ls: cannot access /lib/live: No such file or directory


I don't know what i am supposed to find at /lib/live/mount.

Here is my /
Code:
bin  boot  dev  etc  home  lib  lib64  livemnt  media  mnt  opt  proc  root  run  sbin  sys  target  tftpboot  tmp  usr  var

in case that might help to shed light.

Re: refractainstaller as a text file

Thu Oct 23, 2014 12:38 am

The next error message will be:
Code:

Disable auto-login?
   (Y/n)
   Y

Copying update-initramfs...


Creating etc/fstab...


Mounting tmpfs and proc...


 
  Exit due to error:  1
  See /var/log/refractainstaller_error.log for details.


with the following in refractainstaller_error.log
Code:

root@sysresccd /home/user % cat /var/log/refractainstaller_error.log
262144+0 records in
262144+0 records out
268435456 bytes (268 MB) copied, 2.70438 s, 99.3 MB/s
sed: can't read /target etc/hostname: No such file or directory

Usage:
mount [-lhV]
mount -a [options]
mount [options] [--source] <source> | [--target] <directory>
mount [options] <source> <directory>
mount <operation> <mountpoint> [<target>]

Options:
-a, --all               mount all filesystems mentioned in fstab
-c, --no-canonicalize   don't canonicalize paths
-f, --fake              dry run; skip the mount(2) syscall
-F, --fork              fork off for each device (use with -a)
-T, --fstab <path>      alternative file to etc/fstab
-h, --help              display this help text and exit
-i, --internal-only     don't call the mount.<type> helpers
-l, --show-labels       lists all mounts with LABELs
-n, --no-mtab           don't write to etc/mtab
-o, --options <list>    comma-separated list of mount options
-O, --test-opts <list>  limit the set of filesystems (use with -a)
-r, --read-only         mount the filesystem read-only (same as -o ro)
-t, --types <list>      limit the set of filesystem types
     --source <src>      explicitly specifies source (path, label, uuid)
     --target <target>   explicitly specifies mountpoint
-v, --verbose           say what is being done
-V, --version           display version information and exit
-w, --rw, --read-write  mount the filesystem read-write (default)

-h, --help     display this help and exit
-V, --version  output version information and exit

Source:
-L, --label <label>     synonym for LABEL=<label>
-U, --uuid <uuid>       synonym for UUID=<uuid>
LABEL=<label>           specifies device by filesystem label
UUID=<uuid>             specifies device by filesystem UUID
PARTLABEL=<label>       specifies device by partition label
PARTUUID=<uuid>         specifies device by partition UUID
<device>                specifies device by path
<directory>             mountpoint for bind mounts (see --bind/rbind)
<file>                  regular file for loopdev setup

Operations:
-B, --bind              mount a subtree somewhere else (same as -o bind)
-M, --move              move a subtree to some other place
-R, --rbind             mount a subtree and all submounts somewhere else
--make-shared           mark a subtree as shared
--make-slave            mark a subtree as slave
--make-private          mark a subtree as private
--make-unbindable       mark a subtree as unbindable
--make-rshared          recursively mark a whole subtree as shared
--make-rslave           recursively mark a whole subtree as slave
--make-rprivate         recursively mark a whole subtree as private
--make-runbindable      recursively mark a whole subtree as unbindable

For more details see mount(8).

Re: refractainstaller as a text file

Thu Oct 23, 2014 1:36 am

It's choking on the first mount after trying to change the hostname. Gentoo doesn't have etc/hostname?
Anyway, it's this part. You might get more information if you run the script with the -d option.
Code:
# mount stuff so grub will behave (so chroot will work)
echo -e "\n Mounting tmpfs and proc...\n"
mount -t tmpfs --bind /dev/ /target/dev/ ; check_exit
mount -t proc --bind /proc/ /target/proc/ ; check_exit
mount -t sysfs --bind /sys/ /target/sys/ ; check_exit


Go through the script and look at the system commands to see what is done differently. Important system files might be in a different location or not exist.


medium contains what you'd see on the mounted live-CD.
rootfs contains the filesystem that's inside the squash file.
I'm guessing the gentoo equivalent is in /livemnt


Code:
~$ tree -d -L 4 /lib/live/mount
├── medium
│   ├── isolinux
│   ├── live
│   └── pkglist_jessie_sysv.2-20141022_2114
├── overlay
└── rootfs
    └── filesystem.squashfs
        ├── bin
        ├── boot
        │   └── grub
        ├── dev
        ├── etc
        │   ├── acpi
        │   ├── alternatives
        │   ├── apm
        │   ├── apt
        │   ├── bash_completion.d
        │   ├── ca-certificates
        │   ├── calendar
        │   ├── chatscripts
        │   ├── console
        │   ├── console-setup
        │   ├── cron.d
        │   ├── cron.daily
        │   ├── cron.hourly
        │   ├── cron.monthly
        │   ├── cron.weekly
        │   ├── dbus-1
        │   ├── default
        │   ├── dhcp
        │   ├── dictionaries-common
        │   ├── discover.conf.d
        │   ├── dkms
        │   ├── dpkg
        │   ├── emacs
        │   ├── exim4
        │   ├── fonts
        │   ├── fstab.d
        │   ├── gconf
        │   ├── gftp
        │   ├── ghostscript
        │   ├── gimp
        │   ├── groff
        │   ├── grub.d
        │   ├── gss
        │   ├── gtk-2.0
        │   ├── gtk-3.0
        │   ├── iceweasel
        │   ├── ifplugd
        │   ├── init
        │   ├── init.d
        │   ├── initramfs-tools
        │   ├── insserv
        │   ├── insserv.conf.d
        │   ├── iproute2
        │   ├── kbd
        │   ├── kernel
        │   ├── ldap
        │   ├── ld.so.conf.d
        │   ├── libnl-3
        │   ├── libpaper.d
        │   ├── live
        │   ├── logcheck
        │   ├── logrotate.d
        │   ├── lvm
        │   ├── lynx-cur
        │   ├── mc
        │   ├── menu
        │   ├── menu-methods
        │   ├── modprobe.d
        │   ├── Muttrc.d
        │   ├── network
        │   ├── newt
        │   ├── opt
        │   ├── pam.d
        │   ├── perl
        │   ├── pm
        │   ├── ppp
        │   ├── profile.d
        │   ├── pulse
        │   ├── python
        │   ├── python2.6
        │   ├── python2.7
        │   ├── rc0.d
        │   ├── rc1.d
        │   ├── rc2.d
        │   ├── rc3.d
        │   ├── rc4.d
        │   ├── rc5.d
        │   ├── rc6.d
        │   ├── rcS.d
        │   ├── request-key.d
        │   ├── rsyslog.d
        │   ├── samba
        │   ├── sane.d
        │   ├── security
        │   ├── selinux
        │   ├── sensors.d
        │   ├── sgml
        │   ├── skel
        │   ├── smartmontools
        │   ├── ssh
        │   ├── ssl
        │   ├── sudoers.d
        │   ├── sysctl.d
        │   ├── systemd
        │   ├── terminfo
        │   ├── texmf
        │   ├── tmpfiles.d
        │   ├── udev
        │   ├── ufw
        │   ├── vim
        │   ├── w3m
        │   ├── wicd
        │   ├── wireshark
        │   ├── wpa_supplicant
        │   ├── X11
        │   ├── xdg
        │   ├── xml
        │   └── xpdf
        ├── home
        │   └── user
        ├── lib
        │   ├── cryptsetup
        │   ├── discover
        │   ├── firmware
        │   ├── hdparm
        │   ├── i386-linux-gnu
        │   ├── ifupdown
        │   ├── init
        │   ├── live
        │   ├── lsb
        │   ├── modprobe.d
        │   ├── modules
        │   ├── modules-load.d
        │   ├── security
        │   ├── startpar
        │   ├── systemd
        │   ├── sysvinit
        │   ├── terminfo
        │   ├── udev
        │   └── xtables
        ├── lost+found [error opening dir]
        ├── media
        ├── mnt
        ├── opt
        ├── proc
        ├── root [error opening dir]
        ├── run
        ├── sbin
        ├── srv
        ├── sys
        ├── tmp
        ├── usr
        │   ├── bin
        │   ├── games
        │   ├── include
        │   ├── lib
        │   ├── local
        │   ├── sbin
        │   ├── share
        │   └── src
        └── var
            ├── backups
            ├── cache
            ├── lib
            ├── local
            ├── lock -> /run/lock
            ├── log
            ├── mail
            ├── opt
            ├── run -> /run
            ├── spool
            └── tmp

178 directories

Re: refractainstaller as a text file

Thu Oct 23, 2014 1:05 pm

Thanks.
Also for the $ tree

I can't say when i will go on. Might take a bit (might also never happen, of course).
My idea, last night, after reading your post, was to simply take the commands, run them form CLI, look where they fail/how to change them, then insert them to the script.

Re: refractainstaller as a text file

Thu Oct 23, 2014 1:59 pm

As you figure out the correct commands, keep a list, and I'll go over it with you. Also, look at how the gentoo live dvd is put together. There must be some equivalent of the live-boot and live-config scripts, and those would need to be copied to the correct location. Uh, maybe that's not needed for the installer, but if we can get it installed, maybe we can figure out how to make a snapshot, too.

Re: refractainstaller as a text file

Thu Oct 23, 2014 4:50 pm

1) Yes, i will make notes
2) Like said: it might really take a while (i simply don't know)
3) Don't think it matters, but SystemRescue is based on funtoo (which is based on Gentoo, and i was told in IRC the differences between gentoo and funtoo will only be seen if one looks really close)
4) Truth is: I really don't know how liveCD's work. Doesn't make it more easy for me.

Re: refractainstaller as a text file

Thu Oct 23, 2014 4:53 pm

PS: Right now it looks way more easy to go for a "usual" gentoo/funtoo installation (mount partition, download stage3.tar.gz, chroot, finish installation)
Would be nice to have a quick installation method in the long run. Hence i am willing trying to figure it out, even if it takes all of winter.
Post a reply