Commit b9cd2842 authored by fsmithred's avatar fsmithred

initial commit

parent 7caedee3
This diff is collapsed.
# refractainstaller-gui
refractainstaller, refractainstaller-gui
(C) 2011-2017
Portions may be copyright Dean Linkous and/or David Hare and/or others.
Based on refractainstaller-8.0.3 by Dean Linkous
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; under version 3 of the License.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
On Debian systems, the complete text of the GNU General Public License version 3
can be found in /usr/share/common-licenses/GPL-3 file.
This diff is collapsed.
Source: refractainstaller-gui
Section: misc
Priority: extra
Maintainer: fsmithred <>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.9.4
Homepage: <>
#Vcs-Git: git://
Package: refractainstaller-gui
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends},
bash (>=4.1),
rsync (>=3.0),
sed (>=4.2),
grep (>=2.6),
coreutils (>=8.5),
e2fsprogs (>=1.41.12),
mount (>=2.17.2),
util-linux (>=2.17.2),
gparted (>=0.7.0),
yad ( >=,
refractainstaller-base (>= 9.2.1),
Recommends: cryptsetup, grub-pc | grub-legacy | grub-efi
Replaces: refractainstaller (<< 9.0.0), refractainstaller-gui (<< 9.2.1)
Description: tool to install a running live-CD to hard drive.
Refracta Installer installs a live-CD or live-usb-hdd, including any
changes you've made to the running system onto a hard drive. This is
the graphical version.
refractainstaller-gui_9.2.2_all.deb misc extra
refractainstaller.desktop usr/share/applications usr/bin
refractainstaller-yad usr/bin usr/lib/refractainstaller
refractainstaller-uefi usr/bin
uefi_install.readme usr/lib/refractainstaller
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
chmod 0655 "$(CURDIR)/refractainstaller-yad"
chmod 0655 "$(CURDIR)/"
chmod 0655 "$(CURDIR)/"
dh $@
# It is safe to delete this file after installation.
- /dev/*
- /cdrom/*
- /media/*
- /target
- /swapfile
- /mnt/*
- /sys/*
- /proc/*
- /tmp/*
- /live
- /boot/grub/grub.cfg
- /boot/grub/menu.lst
- /boot/grub/
- /etc/udev/rules.d/70-persistent-cd.rules
- /etc/udev/rules.d/70-persistent-net.rules
- /etc/fstab
- /etc/fstab.d
- /etc/mtab
- /home/snapshot/
- /home/*/.gvfs
# Added for newer version of live-config/live-boot
# in sid (to become Jessie)
- /lib/live/overlay
- /lib/live/image
- /lib/live/rootfs
- /lib/live/mount
- /run/*
#!/usr/bin/env bash
#set -x
# Send errors to the installer's error log.
error_log=$(grep error_log /etc/refractainstaller.conf | cut -d"\"" -f2)
exec 2>> "$error_log"
move_dir () {
# Select the directory you want to move to another partition
source_dir=$(yad --file-selection --directory --width=640 --height=640 \
--title=$"Move directory" --text=$"Select the directory you want to move to another partition.")
if [[ $? -ne 0 ]] ; then
exit 0
# Make sure the user select selects source_dir from the new installation, mounted at /target
# The other partition (full device name, like /dev/sdb2)
destination_partition=$(find /dev -mindepth 1 -maxdepth 1 -name "*[sh]d[a-z][1-9]*" \
| sort | awk '{print "\n" $0 }' \
| yad --list --title=$"/boot partition" --text=$"Select the destination partition for /${source_dir##*/}." \
--separator="" --column ' ' --column $'Partitions' --height=380 --width=150 --button=$"OK":0)
if [[ $? -ne 0 ]] ; then
exit 0
# Temporary mount point for the other partition, just to copy the files.
temp_mountpoint="$(mktemp -d /tmp/$dirname.XXXXXX)"
echo "1 $source_dir"
echo "2 $destination_partition"
echo "3 $temp_mountpoint"
if [[ -z "$source_dir" || -z $destination_partition || -z $temp_mountpoint ]] ; then
echo $"ERROR: Empty variable in $0"
exit 1
mount "$destination_partition" "$temp_mountpoint"
rsync -av /target"$source_dir"/ "$temp_mountpoint"/ | \
tee >(yad --progress --pulsate --width=350 --auto-close --title=$"Copying $source_dir to ${destination_partition}.")
idnum=$(blkid -c /dev/null -o value -s UUID "$destination_partition")
fstype=$(blkid -c /dev/null -o value -s TYPE "$destination_partition")
echo -e "UUID=$idnum\t$source_dir\t$fstype\tdefaults,noatime\t0\t2" >> /target/etc/fstab
rm -rf /target"$source_dir"/*
umount "$temp_mountpoint"
rmdir "$temp_mountpoint"
ask_again () {
yad --question --title=$"Move another directory?" --text=$"Do you want to move another directory to a separate partition?" \
--button=$"Yes":0 --button=$"No":1
if [[ $? -eq 0 ]] ; then
exit 0
exit 0
This diff is collapsed.
#!/usr/bin/env bash
# New wrapper for refractainstaller-uefi/yad 9.2.2
if ! [[ -f /usr/bin/yad ]]; then
xterm -hold -fa mono -fs 14 -geometry 80x20+0+0 -e echo $"
Yad is not installed, Install it or run 'refractainstaller' from a
terminal or console for the CLI version.
" &
if [[ -d /sys/firmware/efi ]]; then
yad --question --title=$"Admin Mode" --button=$" use 'su' ":0 \
--button=$" use sudo ":1 --button=$"Exit":2 \
--text=$"What method do you use to become Administrator / root?
Note: This is only for the purpose of starting this script.
It does not change anything.
You will be asked later to choose the method you
want to use in the installed system."
if [[ $ans -eq 0 ]] ; then
xterm -fa mono -fs 12 -e su -c "$installer"
elif [[ $ans -eq 1 ]] ;then
xterm -fa mono -fs 12 -e "sudo $installer"
elif [[ $ans -eq 2 ]]; then
echo "Good-bye."
exit 0
echo "Done."
exit 0
This diff is collapsed.
[Desktop Entry]
Name=Refracta Installer
Comment= Install from a live CD to your system.
#Exec=gksu 'x-terminal-emulator -e /usr/bin/refractainstaller-gui'
for refractainstaller-uefi
1. The easy way:
If you already have a linux installation on the computer that boots
uefi, and you plan to keep that linux, you can use this installer,
but when you get to the part that says you're ready to chroot, just
select OK, and you'll bypass that step.
If you accidentally choose Chroot, you can still skip this step by
simply exiting the terminal window that pops up.
When the install is complete, reboot into your first linux and run
update-grub, or do whatever you do to add a boot menu entry for the
new installation.
2. The experimental, semi-manual uefi installation:
Don't mess with this if you don't know what you are doing!
These instructions are probably not complete and can't account for all
the non-standard variations in uefi implementation used in motherboards.
And this installer has had minimal testing. (It works great on my
linux-only Toshiba notebook.)
Be prepared to hose your system.
Read this:
This iso will boot bios or uefi. To install on uefi hardware, run
refractainstaller-uefi -d
There is only Expert Install.
Leave the box checked for "Do not install bootloader"
Create efi partition if one does not already exist. It should be the
first partition on the first hard drive. In gparted, make a fat32 partition,
around 200-300MB (or bigger if that causes problems) and set the esr flag.
(The boot flag is added automatically.)
When the script pauses, the installed system is ready for you to
install the bootloader. There are several choices:
Opens a terminal in the chrooted installation.
If you have the grub-efi packages, run:
dpkg -i grub-efi*.deb
If grub-efi is already installed, you can run:
grub-install (optionally add --bootloader-id=some-name)
Install bootloader:
This button will appear if grub-efi is installed. Selecting this will
run grub-install and update-grub for you. There's no way to select a
bootloader-id this way. It will be called 'devuan' (or another distro.)
Copy files:
This button will appear if grub-efi is not installed and the grub-efi
deb packages are not found in the target root directory. If you have
the packages somewhere else, this will let you select them and will
copy them to the target for you. You can then install them with dpkg
as described above in the chroot terminal.
Will proceed whether or not you have installed a bootloader. If not,
you will need to have another way to boot this installation.
NOTE: This is the default if you just press ENTER.
Abort: will exit the installer and abort the installation.
Fully manual method (deprecated):
These steps now get done for you if you press the Chroot button. **
** Add an entry to /target/etc/fstab for the efi partition (probably /dev/sda1)
** /dev/sda1 /boot/efi vfat defaults 0 1
** mkdir /target/boot/efi
** mount $efi_part /boot/efi
** chroot /target
In the chroot terminal, run these commands -->
--> dpkg -i /grub-efi*.deb # Install both packages!
edit /etc/default/grub if desired.
--> update-grub
--> exit
Then close the pause window and finish the installation.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment