Commit 250ef676 authored by Vitaly Lipatov's avatar Vitaly Lipatov

enable mount /proc in hsh-shell

parent 4b67d25f
...@@ -87,7 +87,7 @@ if [ ! -d $HASHERDIR -o "$INITIALIZE" = "1" ]; then ...@@ -87,7 +87,7 @@ if [ ! -d $HASHERDIR -o "$INITIALIZE" = "1" ]; then
mkdir -p $HASHERDIR && $HSH --initroot-only $HASHERDIR || fatal "mkdir" mkdir -p $HASHERDIR && $HSH --initroot-only $HASHERDIR || fatal "mkdir"
fi fi
HASHERARG="$HASHERARG --mountpoints=/proc" SHELLHASHERARG="--mountpoints=/proc"
check_locking check_locking
...@@ -100,13 +100,12 @@ if [ -n "$TESTMODE" ] ; then ...@@ -100,13 +100,12 @@ if [ -n "$TESTMODE" ] ; then
else else
UTILPKG="$UTILPKG etersoft-build-utils" UTILPKG="$UTILPKG etersoft-build-utils"
fi fi
$HSH-install $HASHERDIR $UTILPKG $LISTRPMARGS $LISTNAMES || fatal "Error with install" $HSH-install $HASHERDIR --wait-lock $UTILPKG $LISTRPMARGS $LISTNAMES || fatal "Error with install"
echog "You are in hasher shell" echog "You are in hasher shell"
$HSH-shell $HASHERDIR -Y --shell $HSH-shell $HASHERDIR $SHELLHASHERARG -Y --shell
if [ -n "$TESTMODE" ] ; then if [ -n "$TESTMODE" ] ; then
echo "Remove package for test preun scripts" echo "Remove package for test preun scripts"
$HSH-run --rooter $HASHERDIR -- rpm -e $(drop_pkg_extensions $LISTNAMES) $HSH-run --rooter $HASHERDIR -- rpm -e $(drop_pkg_extensions $LISTNAMES)
echo "Cleanup hasher..." echo "Cleanup hasher..."
$HSH --cleanup-only $HASHERDIR $HSH --cleanup-only $HASHERDIR
fi fi
# $HASHERARG
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment