Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
e8f33d3b
Commit
e8f33d3b
authored
Oct 07, 2015
by
kytv
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved function name
parent
2f778a47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
config/chroot_local-includes/usr/local/sbin/live-persist
config/chroot_local-includes/usr/local/sbin/live-persist
+3
-3
No files found.
config/chroot_local-includes/usr/local/sbin/live-persist
View file @
e8f33d3b
...
...
@@ -64,7 +64,7 @@ Options affecting the 'activate' action:
"
}
escape_
path
()
{
escape_
dots
()
{
printf
"%s
\n
"
$1
|
sed
's/\./\\./g'
}
...
...
@@ -76,10 +76,10 @@ migrate_persistence_preset()
local
NEW_PRESET_SOURCE
=
"
${
4
}
"
local
CONFIG
=
"
${
5
}
"
if
grep
-E
-qs
--line-regex
\
-e
"
$(
escape_
path
${
OLD_PRESET
}
)
\s
+source=
${
OLD_PRESET_SOURCE
}
"
\
-e
"
$(
escape_
dots
${
OLD_PRESET
}
)
\s
+source=
${
OLD_PRESET_SOURCE
}
"
\
"
$CONFIG
"
\
&&
!
grep
-E
-qs
--line-regex
\
-e
"
$(
escape_
path
${
NEW_PRESET
}
)
\s
+source=
${
NEW_PRESET_SOURCE
}
"
\
-e
"
$(
escape_
dots
${
NEW_PRESET
}
)
\s
+source=
${
NEW_PRESET_SOURCE
}
"
\
"
$CONFIG
"
then
warning
"Need to make
$NEW_PRESET
persistent"
...
...
kytv
@kytv
mentioned in issue
#6151 (closed)
·
May 15, 2020
mentioned in issue
#6151 (closed)
mentioned in issue #6151
Toggle commit list
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