From 82ad779d4123882fb7da6b6175de76560c0f3d4f Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Wed, 4 Mar 2020 15:42:48 +0100 Subject: 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 Change-Id: Ia2eb94eeb3882b6546ebe9df04befdd42c99bd15 --- meta-netboot/recipes-core/initramfs-netboot/files/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-netboot/recipes-core') 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; } -- cgit 1.2.3-korg