Commit b9cd2842 authored by fsmithred's avatar fsmithred

initial commit

parent 7caedee3
This diff is collapsed.
# refractainstaller-gui
refractainstaller, refractainstaller-gui
Copyright:
(C) 2011-2017 fsmithred@gmail.com
Portions may be copyright Dean Linkous and/or David Hare and/or others.
Based on refractainstaller-8.0.3 by Dean Linkous
License:
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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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 <fsmithred@gmail.com>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.9.4
Homepage: <https://github.com/fsmithred/refracta>
#Vcs-Git: git://git.debian.org/collab-maint/refractainstaller-base.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/refractainstaller-base.git;a=summary
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 ( >=0.17.1.1),
refractainstaller-base (>= 9.2.1),
xterm
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
refractainstaller-wrapper.sh usr/bin
refractainstaller-yad usr/bin
move-dir-mount-gui.sh 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)/refractainstaller-wrapper.sh"
chmod 0655 "$(CURDIR)/move-dir-mount-gui.sh"
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/device.map
- /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
# move-dir-mount-gui.sh
TEXTDOMAIN=refractainstaller-gui
TEXTDOMAINDIR=/usr/share/locale/
#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
fi
# 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
fi
# Temporary mount point for the other partition, just to copy the files.
dirname="${source_dir##*/}"
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
fi
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
}
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
move_dir
else
exit 0
fi
}
move_dir
exit 0
This diff is collapsed.
#!/usr/bin/env bash
#
# New wrapper for refractainstaller-uefi/yad 9.2.2
TEXTDOMAIN=refractainstaller-gui
TEXTDOMAINDIR=/usr/share/locale/
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.
" &
fi
if [[ -d /sys/firmware/efi ]]; then
installer="/usr/bin/refractainstaller-uefi"
else
installer="/usr/bin/refractainstaller-yad"
fi
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."
ans="$?"
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
fi
echo "Done."
exit 0
This diff is collapsed.
[Desktop Entry]
Encoding=UTF-8
Name=Refracta Installer
Comment= Install from a live CD to your system.
#Exec=gksu 'x-terminal-emulator -e /usr/bin/refractainstaller-gui'
Exec=/usr/bin/refractainstaller-wrapper.sh
Terminal=false
Type=Application
Icon=system
Categories=GNOME;GTK;System;
UEFI INSTALL INSTRUCTIONS (EXPERIMENTAL) v.9.2.2
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:
http://www.rodsbooks.com/efi-bootloaders/index.html
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:
Chroot:
Opens a terminal in the chrooted installation.
If you have the grub-efi packages, run:
dpkg -i grub-efi*.deb
update-grub
exit
If grub-efi is already installed, you can run:
grub-install (optionally add --bootloader-id=some-name)
update-grub
exit
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.
Continue:
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