Update netboot initrd to persist the nbd connection 68/24168/8
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 4 Mar 2020 14:42:48 +0000 (15:42 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 12 Mar 2020 15:18:51 +0000 (15:18 +0000)
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

meta-netboot/recipes-core/initramfs-netboot/files/init.sh

index 50d6247..2b8bc63 100644 (file)
@@ -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; }