mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-07 01:41:22 +00:00
use updated kernel and correct path in examples/swap.yml
for swap.sh, take any command-line options, not just those with an arg that in turn requires a new hash on the example Use latest 4.9.x kernel to keep in line with other examples Replace (bash) herestring with (posix) heredoc in swap.sh, and update hash to match Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
while [ $# -gt 1 ]; do
|
||||
while [ $# -ge 1 ]; do
|
||||
key="$1"
|
||||
|
||||
case $key in
|
||||
@@ -74,7 +74,9 @@ fi
|
||||
## check each of our conditions
|
||||
for cond in $CONDITIONS; do
|
||||
# split the condition parts
|
||||
IFS=: read condtype arg1 arg2 arg3 arg4 <<< "$cond"
|
||||
IFS=: read condtype arg1 arg2 arg3 arg4 <<EOF
|
||||
$cond
|
||||
EOF
|
||||
case $condtype in
|
||||
part)
|
||||
partition=$arg1
|
||||
|
Reference in New Issue
Block a user