Fri Jun 06, 2014 10:04 pm
Installer has no_format and snapshot has nocopy. (no_copy is in the setup options in the gui script and is the -n command-line option in the cli script.) Is that what you mean?
# copy everything over except the things listed in the exclude list
rsync -av / /target/ --filter='P lost+found' --filter='H lost+found' --exclude-from="$rsync_excludes" ${sep_home_opt} ${sep_boot_opt} --delete-before --delete-excluded | \
tee >(yad --progress --pulsate --width=350 --auto-close --title=$"Copying system to new partition.")
What's needed for TDE R14?
Is this an example of making it more hackable
Mon Jul 07, 2014 10:52 am
--- ../Desktop/refractainstaller-yad_9.1.0+dzz3 2014-06-21 08:14:48.000000000 -0400
+++ ../refractainstaller-gui-9.1.1/refractainstaller-yad 2014-07-06 23:20:41.371714773 -0400
@@ -71,10 +71,6 @@
# Record errors in a logfile.
exec 2>"$error_log"
-if [ "$debug" = "yes" ] || [ "$DEBUG" = "yes" ]; then
-set -x
-fi
-
# greeter window title
if [ -z "$window_title" ]; then
window_title="$version"
@@ -121,6 +117,9 @@
esac
done
+if [ "$debug" = "yes" ] || [ "$DEBUG" = "yes" ]; then
+ set -x
+fi
# Check that xserver is running and user is root.
[[ $DISPLAY ]] || { echo $"There is no xserver running. Exiting..." ; exit 1 ; }
@@ -206,9 +205,10 @@
# function to exit the script if there are errors
check_exit () {
-if [[ $? -ne 0 ]] ; then
+exit_code="$?"
+if [[ $exit_code -ne 0 ]] ; then
yad --question --title=$"Error" --window-icon=error --button=$"Continue":0 --button=$"Exit now":1 \
- --text=$"Error detected: $? $error_message
+ --text=$"Error detected: $exit_code $error_message
\nSee $error_log for details. \n\nThis may not be fatal.. Press \"Continue\" to proceed anyway"
if [[ $? -ne 0 ]] ; then
@@ -1324,6 +1324,9 @@
if [[ -f /***etc***/ssh/sshd_config ]] ; then
if [[ $root_ssh = "no" ]] ; then
sed -i~ 's/PermitRootLogin yes/PermitRootLogin no/' /target/***etc***/ssh/sshd_config
+ elif [[ $root_ssh = "auth" ]] ; then
+ sed -i~ 's/PermitRootLogin yes/PermitRootLogin without-password/' /target/***etc***/ssh/sshd_config
+ sed -i~ 's/PermitRootLogin no/PermitRootLogin without-password/' /target/***etc***/ssh/sshd_config
fi
fi
@@ -1524,7 +1527,7 @@
fi
fi
-if [ $sudo_is_default != "TRUE" ]; then
+if [ "$sudo_is_default" != "TRUE" ]; then
# files that may have been written by live-config to force live sudo mode
--- /***etc***/refractainstaller.conf 2013-12-06 08:44:19.000000000 -0500
+++ /refractainstaller-base-9.1.1/refractainstaller.conf 2014-07-06 12:01:03.748363128 -0400
@@ -8,6 +8,13 @@
+# Uncomment this if you want to *always* run in debug mode. Otherwise,
+# run the installer with the -d/--debug option to debug a single run.
+
+#DEBUG="yes"
+
+
+
# Run all executable pre-instal or post-install scripts found in
# /usr/lib/refractainstaller/pre-install and
# /usr/lib/refractainstaller/post-install
@@ -72,7 +79,13 @@
# Sets PermitRootLogin to "no" in /***etc***/ssh/sshd_config to disallow
-# root login through ssh.
+# root login through ssh with password. New default requires key
+# authentication for root login.
+#
+# If root_ssh="no" then PermitRootLogin will be changed from "yes" to "no".
+# If root_ssh="auth" then PermitRootLogin will be changed from either
+# "yes" or "no" to "without-password" which is the new debian default.
+# Note: setting it to "yes" will do nothing.
-root_ssh="no"
+root_ssh="auth"
Tue Jul 08, 2014 1:56 am
Shouldn't the rsync filters and deletes be added to the rsync commands for separate /home and /boot?
#### additional custom option examples:
#### the greeter window title can be customized
#### and/or the window text appended:
# window_title=" Your custom title "
# custom_text=" Your custom text. \n Next line. "
Tue Jul 08, 2014 3:14 am
Tue Jul 08, 2014 2:43 pm
If you ever want to do that with separate /home or /boot, you'll need the delete options in those rsync commands.
Tue Jul 08, 2014 11:19 pm
Thu Jul 10, 2014 1:12 pm
# If "noformat" option is chosen: existing files will still be deleted.
# You may optionally re-use a separate /home partition and keep existing files.
# This may not work as expected! DO NOT uncomment this unless you know what you are doing.
#rsync_home_delete="no"
# copy separate /home if needed
if ! [[ -z $home_dev ]] ; then
if [ -z "$rsync_home_delete" ]; then
home_delete_opts="--delete-before --delete-excluded"
fi
rsync -av /home/ /target_home/ --filter='P lost+found' --filter='H lost+found' --exclude-from="$home_boot_excludes $home_delete_opts" | \
tee >(yad --progress --pulsate --width=350 --auto-close --title=$"Copying home folders to home partition.")
fi
# copy separate /boot if needed
if [[ -n $boot_dev ]] ; then
rsync -av /boot/ /target_boot/ --filter='P lost+found' --filter='H lost+found' --exclude-from="$home_boot_excludes $boot_delete_opts" --delete-before --delete-excluded | \
tee >(yad --progress --pulsate --width=350 --auto-close --title=$"Copying files to boot partition.")
fi
Sat Jul 19, 2014 12:12 pm
Sun Jul 20, 2014 5:21 am
apt-cache policy syslinx
apt-cache policy isolinux
Sun Jul 20, 2014 7:15 am