Fri Sep 18, 2015 11:08 pm
Sat Sep 19, 2015 3:26 am
- /usr/bin/refractasnapshot*
- /usr/lib/refractasnapshot
- (/)etc/refractasnapshot.conf # without the parentheses
- /usr/share/applications/refractasnapshot.desktop
Sat Sep 19, 2015 6:13 am
at a command prompt:which files you'd need to edit to change the package status to 'not installed'
The script pauses, inviting you to make changes (edit excludes_list, etc) Yes?The same is for refractainstaller when installing the live-cd. How can I prevent this.
Sat Sep 19, 2015 12:06 pm
The script pauses, inviting you to make changes (edit excludes_list, etc) Yes?
At that point, you can edit / weed out files from work_dir then resume the snapshot script.
Sat Sep 19, 2015 12:22 pm
Sat Sep 19, 2015 12:43 pm
fsmithred wrote:Editing the excludes file can be done ahead of time. (/usr/lib/refractasnapshot/snapshot_excludes.list)
Removing files from the work dir can be done once manually, and if you show me the commands you used, I can probably show you where to put them in the script. (The programs are just bash scripts, so it's easy to change them - no compiling necessary.) You must set edit_boot_menu="yes" in etc/refractasnapshot.conf to get the script to pause. It will resume when you close the editor window that opens.
@thwak - Thanks for the info!
And you got me thinking about making 'use existing swap' the default setting in expert install. If I do that, I think I'll have to add some test to make sure that there really is an existing swap. Oh... boxed checked by default if swap exists. I should be able to do that. That would work with simple install, too.
rm (/)etc/modules && mv (/)etc/.modules (/)etc/modules #I'm using virtualbox to build the live-cd. live-cd doesn't need them.
rm (/)etc/sudoers && mv (/)etc/.sudoers (/)etc/sudoers #live user has no password. so needed to restore the original.
apt-get purge refracta* -y && apt-get autoremove -y # i don't want the end-user to have Refracta installed. (I even considerd to use "rm -rf /*/refracta*)
Sat Sep 19, 2015 1:27 pm
rm "$work_dir"/myfs(/)etc/modules && mv "$work_dir"/myfs(/)etc/.modules "$work_dir"/myfs(/)etc/modules #I'm using virtualbox to build the live-cd. live-cd doesn't need them.
rm "$work_dir"/myfs(/)etc/sudoers && mv "$work_dir"/myfs(/)etc/.sudoers (/)etc/sudoers #live user has no password. so needed to restore the original.
apt-get purge refracta* -y
apt-get autoremove -y # i don't want the end-user to have Refracta installed. (I even considerd to use "rm -rf /*/refracta*)
rm "$work_dir"/myfs/usr/bin/refractasnapshot* "$work_dir"/myfs/usr/share/applications/refractasnapshot.desktop
rm -r "$work_dir"/myfs/usr/lib/refractasnapshot
# Pause to edit the boot menu or anything else in $work_dir
if [[ $edit_boot_menu = "yes" ]]; then
$DIALOG --$QUESTION --title="Edit Boot Menu" --${BUTTON0}="Yes"${BUTTON0NUM} --${BUTTON1}="No"${BUTTON1NUM} \
--text="The program will now pause to allow you to edit any files in the work directory.
Select Yes to review or edit the boot menu or select No
to bypass this step and continue creating the snapshot. "
if [[ $? = 0 ]] ; then
"$gui_editor" "${editor_option}" "$work_dir"/iso/isolinux/"$boot_menu"
fi
fi
# PUT YOUR CODE HERE
# Squash the filesystem copy
if [[ $limit_cpu = "yes" ]] ; then
Sat Sep 19, 2015 1:30 pm
Sat Sep 19, 2015 1:49 pm
If /dev/sdx fs= swap
then
places /path/to/swappartition in fstab
else
create swapfile
places /path/to/swapfile in fstab
fi
Sat Sep 19, 2015 5:14 pm