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
959f2a09
Commit
959f2a09
authored
Aug 31, 2012
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for actual file size in readahead
This should finally allow the progress bar to reach 100%.
parent
d0edae67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config/chroot_local-includes/lib/live/config/0000-readahead
config/chroot_local-includes/lib/live/config/0000-readahead
+2
-2
No files found.
config/chroot_local-includes/lib/live/config/0000-readahead
View file @
959f2a09
...
...
@@ -29,7 +29,7 @@ Start_readahead ()
FG_SIZE
=
$(
cd
/
$FG_FILES
|
xargs
du
-c
2>/dev/null |
xargs
du
-
b
c
2>/dev/null |
awk
'$2 ~ /^total$/ { t = t + $1 } END { print t }'
)
(
cd
/
$BG_FILES
|
...
...
@@ -37,7 +37,7 @@ Start_readahead ()
(
cd
/
$FG_FILES
|
xargs
cat
2>/dev/null |
pv
-f
-s
${
FG_SIZE
}
k
>
/dev/null
||
:
)
pv
-f
-s
${
FG_SIZE
}
>
/dev/null
||
:
)
(
cd
/
start-stop-daemon
\
--start
--background
--make-pidfile
--startas
/bin/sh
\
...
...
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