* [make-initrd] [PATCH v1 08/41] fork pipeline: getimage step modified
@ 2021-09-24 15:56 Leonid Krivoshein
0 siblings, 0 replies; only message in thread
From: Leonid Krivoshein @ 2021-09-24 15:56 UTC (permalink / raw)
To: make-initrd
---
.../bootchain-getimage/data/lib/bootchain/getimage | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/make-initrd/features/bootchain-getimage/data/lib/bootchain/getimage
b/make-initrd/features/bootchain-getimage/data/lib/bootchain/getimage
index 409ad14..49c5ebf 100755
--- a/make-initrd/features/bootchain-getimage/data/lib/bootchain/getimage
+++ b/make-initrd/features/bootchain-getimage/data/lib/bootchain/getimage
@@ -1,6 +1,6 @@
#!/bin/bash -efu
-. pipeline-sh-functions
+. bootchain-sh-functions
check_parameter GETIMAGE
url="$(get_parameter GETIMAGE)"
@@ -9,12 +9,13 @@ if [ -n "${url##file://*}" ]; then
# FIXME: make a better waiting for network
n=0
while [ "$n" != 5 ]; do
- ! wget -O "$datadir/image" "$url" ||
+ ! run wget -O "$datadir/image" -- "$url" ||
break
n=$(($n + 1))
sleep 3
done
else
- cp -f -- "${url#file://}" "$datadir/image"
+ run cp -Lf -- "${url#file://}" "$datadir/image"
fi
-run mount -o ro,loop "$datadir/image" "$destdir"
+
+run mount -o ro,loop -- "$datadir/image" "$destdir"
--
2.21.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-24 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 15:56 [make-initrd] [PATCH v1 08/41] fork pipeline: getimage step modified Leonid Krivoshein
Make-initrd development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
public-inbox-index make-initrd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.make-initrd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git