remove mountfile() from genimage code, according to defect 3017542
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6650 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d80587803c
commit
d7e3671d38
@ -552,29 +552,7 @@ shell() {
|
||||
echo -e " Exit shell to continue booting.\$RESET"
|
||||
\$SHELL
|
||||
}
|
||||
mountfile () {
|
||||
snapshotfile=\${NEWROOT}/\${RWDIR}/\${2}\${1}
|
||||
dir=`dirname \$snapshotfile`
|
||||
#
|
||||
# Check if file already exists in snapshot directory. If not attempt to copy
|
||||
# from root directory to snapshot directory.
|
||||
#
|
||||
if [ ! -e \$snapshotfile ]; then
|
||||
mkdir -p \$dir || echo -e "\${RED}Can't make \$dir\${NORMAL}"
|
||||
#echo -e "\${YELLOW} \${1} missing from client specific area.\${RESET}"
|
||||
if [ -e \$NEWROOT/\${1} ] ; then
|
||||
#echo "Copying \${1}"
|
||||
rsync -a \$NEWROOT/\${1} \$snapshotfile
|
||||
else
|
||||
#echo "Creating \${1}"
|
||||
touch \$snapshotfile
|
||||
fi
|
||||
fi
|
||||
#
|
||||
# Mount the snapshotfile over the root file so the client will have r/w access
|
||||
#
|
||||
mount -n -o bind \$NEWROOT/\$RWDIR/\${2}\${1} \$NEWROOT/\${1}
|
||||
}
|
||||
|
||||
|
||||
fancydisplay () {
|
||||
clear
|
||||
|
@ -521,29 +521,6 @@ shell() {
|
||||
echo " Exit shell to continue booting.\$RESET"
|
||||
\$SHELL
|
||||
}
|
||||
mountfile () {
|
||||
snapshotfile=\${NEWROOT}/\${RWDIR}/\${2}\${1}
|
||||
dir=`dirname \$snapshotfile`
|
||||
#
|
||||
# Check if file already exists in snapshot directory. If not attempt to copy
|
||||
# from root directory to snapshot directory.
|
||||
#
|
||||
if [ ! -e \$snapshotfile ]; then
|
||||
mkdir -p \$dir || echo "\${RED}Can't make \$dir\${NORMAL}"
|
||||
#echo "\${YELLOW} \${1} missing from client specific area.\${RESET}"
|
||||
if [ -e \$NEWROOT/\${1} ] ; then
|
||||
#echo "Copying \${1}"
|
||||
rsync -a \$NEWROOT/\${1} \$snapshotfile
|
||||
else
|
||||
#echo "Creating \${1}"
|
||||
touch \$snapshotfile
|
||||
fi
|
||||
fi
|
||||
#
|
||||
# Mount the snapshotfile over the root file so the client will have r/w access
|
||||
#
|
||||
mount -n -o bind \$NEWROOT/\$RWDIR/\${2}\${1} \$NEWROOT/\${1}
|
||||
}
|
||||
|
||||
fancydisplay () {
|
||||
clear
|
||||
|
@ -561,29 +561,6 @@ shell() {
|
||||
echo -e " Exit shell to continue booting.\$RESET"
|
||||
\$SHELL
|
||||
}
|
||||
mountfile () {
|
||||
snapshotfile=\${NEWROOT}/\${RWDIR}/\${2}\${1}
|
||||
dir=`dirname \$snapshotfile`
|
||||
#
|
||||
# Check if file already exists in snapshot directory. If not attempt to copy
|
||||
# from root directory to snapshot directory.
|
||||
#
|
||||
if [ ! -e \$snapshotfile ]; then
|
||||
mkdir -p \$dir || echo -e "\${RED}Can't make \$dir\${NORMAL}"
|
||||
#echo -e "\${YELLOW} \${1} missing from client specific area.\${RESET}"
|
||||
if [ -e \$NEWROOT/\${1} ] ; then
|
||||
#echo "Copying \${1}"
|
||||
rsync -a \$NEWROOT/\${1} \$snapshotfile
|
||||
else
|
||||
#echo "Creating \${1}"
|
||||
touch \$snapshotfile
|
||||
fi
|
||||
fi
|
||||
#
|
||||
# Mount the snapshotfile over the root file so the client will have r/w access
|
||||
#
|
||||
mount -n -o bind \$NEWROOT/\$RWDIR/\${2}\${1} \$NEWROOT/\${1}
|
||||
}
|
||||
|
||||
fancydisplay () {
|
||||
clear
|
||||
|
@ -535,29 +535,6 @@ shell() {
|
||||
echo -e " Exit shell to continue booting.\$RESET"
|
||||
\$SHELL
|
||||
}
|
||||
mountfile () {
|
||||
snapshotfile=\${NEWROOT}/\${RWDIR}/\${2}\${1}
|
||||
dir=`dirname \$snapshotfile`
|
||||
#
|
||||
# Check if file already exists in snapshot directory. If not attempt to copy
|
||||
# from root directory to snapshot directory.
|
||||
#
|
||||
if [ ! -e \$snapshotfile ]; then
|
||||
mkdir -p \$dir || echo -e "\${RED}Can't make \$dir\${NORMAL}"
|
||||
#echo -e "\${YELLOW} \${1} missing from client specific area.\${RESET}"
|
||||
if [ -e \$NEWROOT/\${1} ] ; then
|
||||
#echo "Copying \${1}"
|
||||
rsync -a \$NEWROOT/\${1} \$snapshotfile
|
||||
else
|
||||
#echo "Creating \${1}"
|
||||
touch \$snapshotfile
|
||||
fi
|
||||
fi
|
||||
#
|
||||
# Mount the snapshotfile over the root file so the client will have r/w access
|
||||
#
|
||||
mount -n -o bind \$NEWROOT/\$RWDIR/\${2}\${1} \$NEWROOT/\${1}
|
||||
}
|
||||
|
||||
fancydisplay () {
|
||||
clear
|
||||
|
@ -637,29 +637,7 @@ shell() {
|
||||
echo -e " Exit shell to continue booting.\$RESET"
|
||||
\$SHELL
|
||||
}
|
||||
mountfile () {
|
||||
snapshotfile=\${NEWROOT}/\${RWDIR}/\${2}\${1}
|
||||
dir=`dirname \$snapshotfile`
|
||||
#
|
||||
# Check if file already exists in snapshot directory. If not attempt to copy
|
||||
# from root directory to snapshot directory.
|
||||
#
|
||||
if [ ! -e \$snapshotfile ]; then
|
||||
mkdir -p \$dir || echo -e "\${RED}Can't make \$dir\${NORMAL}"
|
||||
#echo -e "\${YELLOW} \${1} missing from client specific area.\${RESET}"
|
||||
if [ -e \$NEWROOT/\${1} ] ; then
|
||||
#echo "Copying \${1}"
|
||||
rsync -a \$NEWROOT/\${1} \$snapshotfile
|
||||
else
|
||||
#echo "Creating \${1}"
|
||||
touch \$snapshotfile
|
||||
fi
|
||||
fi
|
||||
#
|
||||
# Mount the snapshotfile over the root file so the client will have r/w access
|
||||
#
|
||||
mount -n -o bind \$NEWROOT/\$RWDIR/\${2}\${1} \$NEWROOT/\${1}
|
||||
}
|
||||
|
||||
fancydisplay () {
|
||||
clear
|
||||
echo -e "\$CYAN"
|
||||
|
Loading…
x
Reference in New Issue
Block a user