-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added 'kvm' group to CLONE_GROUPS variable;
- introduced TMPDIR variable to assist (user-defined prefix) the mktemp command. However, we should make sure that in rescue mode the TMPDIR variable is unset so the mktemp creates the BUILD_DIR under /tmp/rear.XXXXX (issue #323 and #157). By setting TMPDIR in local.conf we can choose were the BUILD_DIR resides (as it also contains the large ISO image); - when we backup to ISO image make sure that the isofs module is copied to the rescue image (issue #326)
- Loading branch information
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# if $scheme=iso then we must have isofs module in rescue mode so that we can | ||
# loopback mount the ISO containing the backup | ||
# BACKUP_URL=iso://backup | ||
|
||
local scheme=$(url_scheme $BACKUP_URL) | ||
|
||
case "$scheme" in | ||
(iso) | ||
MODULES=( ${MODULES[@]} isofs ) | ||
;; | ||
esac |
8 changes: 8 additions & 0 deletions
8
usr/share/rear/rescue/GNU/Linux/60_unset_TMPDIR_in_rescue_conf.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cat - <<EOF >> "$ROOTFS_DIR/etc/rear/rescue.conf" | ||
# TMPDIR variable may be defined in local.conf file as prefix dir for mktemp command | ||
# e.g. by defining TMPDIR=/var we would get our BUILD_DIR=/var/tmp/rear.XXXXXXXXXXXX | ||
# However, in rescue we want our BUILD_DIR=/tmp/rear.XXXXXXX as we are not sure that | ||
# the user defined TMPDIR would exist in our rescue image | ||
# by 'unset TMPDIR' we achieve above goal (as rescue.conf is read after local.conf)! | ||
unset TMPDIR | ||
EOF |