summaryrefslogtreecommitdiffstats
path: root/rescue/Flash/scripts/reset_rootpass
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/Flash/scripts/reset_rootpass')
-rwxr-xr-xrescue/Flash/scripts/reset_rootpass9
1 files changed, 2 insertions, 7 deletions
diff --git a/rescue/Flash/scripts/reset_rootpass b/rescue/Flash/scripts/reset_rootpass
index 7d1cb0431..dbbaf394f 100755
--- a/rescue/Flash/scripts/reset_rootpass
+++ b/rescue/Flash/scripts/reset_rootpass
@@ -80,13 +80,8 @@ if ! insert_pendrive; then
exit 1
fi
-if [ x"$version" = x"1.0" ]; then
- sys_loop="$rootdir/loopbacks/system.loop"
- sfs_loop="$rootdir/loopbacks/distrib.sqfs"
-else
- sys_loop="$rootdir/.loopbacks/system.loop"
- sfs_loop="$rootdir/.loopbacks/distrib.sqfs"
-fi
+sys_loop="$rootdir$loopbacks_rel/system.loop"
+sfs_loop="$rootdir$loopbacks_rel/distrib.sqfs"
if ! prepare; then
cleanup