aboutsummaryrefslogtreecommitdiffstats
path: root/meta-netboot
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-03-04 15:42:48 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-03-12 15:18:51 +0000
commit82ad779d4123882fb7da6b6175de76560c0f3d4f (patch)
tree94df68dbd9c9ca2ca653fb82d3ee79e678ec9550 /meta-netboot
parent8b2bc4509bf25ddb4274cfab8e815a1ba8b116e5 (diff)
Update netboot initrd to persist the nbd connection
Use -persist option for nbd. Bug-AGL: SPEC-3221 Bug-AGL: SPEC-3232 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Ia2eb94eeb3882b6546ebe9df04befdd42c99bd15
Diffstat (limited to 'meta-netboot')
-rw-r--r--meta-netboot/recipes-core/initramfs-netboot/files/init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-netboot/recipes-core/initramfs-netboot/files/init.sh b/meta-netboot/recipes-core/initramfs-netboot/files/init.sh
index 50d62472a..2b8bc63d0 100644
--- a/meta-netboot/recipes-core/initramfs-netboot/files/init.sh
+++ b/meta-netboot/recipes-core/initramfs-netboot/files/init.sh
@@ -125,7 +125,7 @@ try=5
while :;do
log_info "Starting NBD client"
if [ -z "${NBD_NAMEV3}" ]; then
- nbd-client $NBD_SERVER $NBD_PORT $NBD_DEV && { log_info "NBD client successfully started"; break; }
+ nbd-client -persist $NBD_SERVER $NBD_PORT $NBD_DEV && { log_info "NBD client successfully started"; break; }
log_info "NBD client failed"
else
nbd3-client $NBD_SERVER $NBD_DEV --name $NBD_NAMEV3 && { log_info "NBD3 client successfully started"; break; }