3
###################################################################################
4
# UCK - Ubuntu Customization Kit #
5
# Copyright (C) 2006-2010 UCK Team #
7
# UCK is free software: you can redistribute it and/or modify #
8
# it under the terms of the GNU General Public License as published by #
9
# the Free Software Foundation, either version 3 of the License, or #
10
# (at your option) any later version. #
12
# UCK is distributed in the hope that it will be useful, #
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15
# GNU General Public License for more details. #
17
# You should have received a copy of the GNU General Public License #
18
# along with UCK. If not, see <http://www.gnu.org/licenses/>. #
19
###################################################################################
23
#############################
24
# general purpose functions #
25
#############################
29
echo "Usage: $0 [remaster-dir]"
38
#########################
39
# input parameter check #
40
#########################
42
if [ -z "$REMASTER_HOME" ]; then
50
. libraries/remaster-live-cd.sh 2>/dev/null ||
51
. /usr/lib/uck/remaster-live-cd.sh 2>/dev/null ||
52
failure "libraries not found"
55
case "$REMASTER_HOME" in
56
/*) : ok - has absolute path;;
57
*) failure "remaster-dir argument must be absolute path";;
60
# Umount r/w copy of rootfs on iso
61
if mountpoint "$REMASTER_HOME/remaster-root"; then
62
union_umount "$REMASTER_HOME/remaster-root" ||
63
failure "Can't union_umount $REMASTER_HOME/remaster-root"
66
# Umount r/w copy of iso
67
if mountpoint "$REMASTER_HOME/remaster-iso"; then
68
union_umount "$REMASTER_HOME/remaster-iso" ||
69
failure "Can't union_umount $REMASTER_HOME/remaster-iso"