summaryrefslogtreecommitdiffstats
path: root/rescue/Flash/scripts/reset_userpass
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/Flash/scripts/reset_userpass')
-rwxr-xr-xrescue/Flash/scripts/reset_userpass4
1 files changed, 3 insertions, 1 deletions
diff --git a/rescue/Flash/scripts/reset_userpass b/rescue/Flash/scripts/reset_userpass
index d392ecd18..e7c5477eb 100755
--- a/rescue/Flash/scripts/reset_userpass
+++ b/rescue/Flash/scripts/reset_userpass
@@ -23,6 +23,8 @@ function prepare() {
return 1
fi
+ set_sfs_loop $rootdir
+
mount -t squashfs -o loop $sfs_loop $tmpdir/squash > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error mounting distrib.sqfs"
@@ -92,7 +94,7 @@ if ! insert_pendrive; then
fi
sys_loop="$rootdir$loopbacks_rel/system.loop"
-sfs_loop="$rootdir$loopbacks_rel/distrib.sqfs"
+sfs_loop= #
if ! prepare; then
cleanup