Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Applications
manjaro-architect
Commits
10211c7b
Commit
10211c7b
authored
Mar 30, 2017
by
Bernhard Landauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luks_open() enter password only once
parent
bfeb4fc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/util-disk.sh
lib/util-disk.sh
+4
-3
No files found.
lib/util-disk.sh
View file @
10211c7b
...
...
@@ -497,13 +497,14 @@ luks_open() {
fi
# Select encrypted partition to open
DIALOG
"
$_LuksOpen
"
--menu
"
\n
$_LuksMenuBody
\n
"
0 0 12
${
PARTITIONS
}
2>
${
ANSWER
}
||
return
1
DIALOG
"
$_LuksOpen
"
--menu
"
\n
$_LuksMenuBody
\n
"
0 0 12
${
PARTITIONS
}
2>
${
ANSWER
}
||
return
0
PARTITION
=
$(
cat
${
ANSWER
}
)
# Enter name of the Luks partition and get password to open it
DIALOG
"
$_LuksOpen
"
--inputbox
"
\n
$_LuksOpenBody
\n
"
10 50
"cryptroot"
2>
${
ANSWER
}
||
return
1
DIALOG
"
$_LuksOpen
"
--inputbox
"
\n
$_LuksOpenBody
\n
"
10 50
"cryptroot"
2>
${
ANSWER
}
||
return
0
LUKS_ROOT_NAME
=
$(
cat
${
ANSWER
}
)
luks_password
DIALOG
"
$_PrepLUKS
"
--clear
--insecure
--passwordbox
"
\n
$_LuksPassBody
\n
"
0 0 2>
${
ANSWER
}
||
return
0
PASSWD
=
$(
cat
${
ANSWER
}
)
# Try to open the luks partition with the credentials given. If successful show this, otherwise
# show the error
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment