Refracta Development, Scripts, etc.
Post a reply

Re: New versions of installer and snapshot (9.1.x) for sid

Tue Sep 02, 2014 9:25 am

@fsmithred
Great!
I have since run another couple of snaspshots on my SID distro and no problems 8-)

keep up the great work!

my Wheezy based distro has a September release...again made with refractasnapshot stable.
http://dwmx.org

Re: New versions of installer and snapshot (9.1.x) for sid

Wed Sep 24, 2014 2:06 pm

I have a clean sid, amd64, and the latest refracta tools.

When I try to make a snapshot, it won't boot with the following error:

Failed to load ldlinux.c32
Boot failed: press a key to retry...

I have both syslinux and isolinux. I noticed that ldlinux.c32 is in live-build, so I installed that too.

Taking a look at the refracta-snapshot package (both base and gui), I notice the followong line:

rsync -a /usr/lib/syslinux/modules/bios/ldlinux.c32 "$iso_dir"/isolinux/

However, in my sid system ldlinux.c32 is located in /usr/share/live/build/bootloaders/isolinux/

I guess there is some bug here. Any advice?

Re: New versions of installer and snapshot (9.1.x) for sid

Wed Sep 24, 2014 4:47 pm

It's in syslinux-common.. If you got "recommends" turned off you need to install syslinux-common manually.

https://packages.debian.org/sid/syslinux
https://packages.debian.org/sid/all/sys ... n/filelist

It is probably duplicated in live-build (if you have that installed.. but you can build a live iso without it)

Re: New versions of installer and snapshot (9.1.x) for sid

Thu Sep 25, 2014 9:49 am

Thanks, that worked!

Re: New versions of installer and snapshot (9.1.x) for sid

Thu Sep 25, 2014 11:55 am

I'll add syslinux-common to the Depends in the next version.

Edit: Done. Only change is that dependency. If you have syslinux-common installed along wtih 9.1.2-1, then you don't need 9.1.2-2. New debs are in the testing folder at ibiblio.
http://distro.ibiblio.org/refracta/files/Testing/

Re: New versions of installer and snapshot (9.1.x) for sid

Tue Oct 21, 2014 9:11 pm

New installer debs -
http://distro.ibiblio.org/refracta/file ... .1_all.deb
http://distro.ibiblio.org/refracta/file ... .1_all.deb

This includes changes in how sudo and root are handled (changes from dzz's version 9.1.0+dzz3), adding sudo for halt, reboot, etc., code to allow password login to ssh, which gets turned off by live-config, and the main reason I wanted to get it out, no more dependency on gksu, so it will install on a lean system.

I'll smooth out the wrapper script later, so it will optionally use gksu, kdesu, or the other one that starts with k, or else use xterm.

Re: New versions of installer and snapshot (9.1.x) for sid

Thu Oct 23, 2014 4:38 am

New testing folder -
https://sourceforge.net/projects/refrac ... s/testing/

Refractainstaller-9.1.1
Refracta Snapshot-9.1.3

Some possible funky parts in the new snapshot -
The wrapper script is supposed to work with whatever graphical frontend to su or sudo you have, and failing that, will use xterm. It's not hardly been tested at all. There's no more dependency on gksu for the gui scripts.

I had trouble with live-config scripts not working in my snapshots - no autologin to console, but I did get autologin to desktop when I logged into the console. There's no display manager, so 0140-xinit was working.
inittab wasn't getting edited for console autologin - that happens in 0160-sysvinit.
openssh-keys were not created - 1160-openssh-server.
and no sudo.

I found state files in /var/lib/live/config/ on the installed system. Removing those and the ones in work/myfs/ didn't help. I added it to the excludes file anyway.

Snapshot script now creates 1161-openssh-server if you enable password login for ssh, and it reverses what 1160-openssh-server does to that setting, thus allowing passwords again. When I added 'ssh-keygen -A' to that script, everything started working correctly again.

So... it seems to be working now.

Code:
refractasnapshot-base (9.1.3) unstable; urgency=low

  * Fixed cleanup package list directories on iso.
  * Add distro name to boot menu in place with sed instead of echoing
  * menu from script. This prevents clobbering a custom iso_dir or menu.
  * Add 1161-openssh-server to live-config scripts to allow ssh password
  * Added chain.c32 to isolinux menu for hard disk boot.
  * Updated copy of memtest86+.bin to version 5.01-2
  * Added - /var/lib/live/config/* to excludes.

refractasnapshot-gui (9.1.3) unstable; urgency=low

  * Removed gksu from depends.

Re: New versions of installer and snapshot (9.1.x) for sid

Fri Oct 24, 2014 1:03 pm

refractainstaller-yad-9.1.1 dies when it's trying to install grub. I fixed it and uploaded new deb file for the gui package.
http://sourceforge.net/projects/refract ... b/download

Re: New versions of installer and snapshot (9.1.x) for sid

Tue Oct 28, 2014 5:07 am

Oy... this is from refractasnapshot.conf.
Code:
# Allow password login to ssh for users (not root).
# If ssh_pass="yes", then PasswordAuthentication will be set to "yes"
# If ssh_pass="no", then PasswordAuthentication will be set to "no"
# In either of the above cases, if PermitRootLogin was set to "yes",
# it will be changed to "without-password" (meaning with auth keys only)
# If ssh_pass is null or set to anything other than "yes", then
# F/Fetc/ssh/sshd_config will not be altered.

ssh_pass="yes"


Lemme go look at the code and see what it really does.

It should say
Code:
# If ssh_pass is null or set to anything other than "yes" or "no", then
# F/Fetc/ssh/sshd_config will not be altered.

Re: New versions of installer and snapshot (9.1.x) for sid

Tue Nov 18, 2014 2:27 am

Line 424 of refractasnapshot and 553 of refractasnapshot-gui 9.1.3 needs a space between echo and quote.
Code:
echo "#!/bin/sh

This enables password login through ssh in the snapshot.
Post a reply