[Merge] ~samirakarioh/livecd-rootfs:add-metadata-rocks into livecd-rootfs:ubuntu/master

Cristovao Cordeiro mp+430736 at code.launchpad.net
Thu Sep 29 11:25:27 UTC 2022



Diff comments:

> diff --git a/live-build/functions b/live-build/functions
> index 3de9857..7a0f6a9 100644
> --- a/live-build/functions
> +++ b/live-build/functions
> @@ -931,6 +932,15 @@ configure_oci() {
>      echo 'exit 101' >> ${chroot}/usr/sbin/policy-rc.d
>      Chroot ${chroot} "chmod +x /usr/sbin/policy-rc.d"
>  
> +
> +    if ! [ -z "$serial" ];
> +    then
> +    # create a folder /etc/cloud if not exist and add a build.info file in it with the serial of the image

"if not exist" -> "if it does not exist"

> +        mkdir -p ${chroot}/etc/cloud
> +        cat > ${chroot}/etc/cloud/build.info << EOF
> +serial: $serial
> +EOF
> +    fi
>      # https://github.com/docker/docker/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap#L54-L56
>      Chroot ${chroot} "dpkg-divert --local --rename --add /sbin/initctl"
>      cp -a ${chroot}/usr/sbin/policy-rc.d ${chroot}/sbin/initctl


-- 
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/430736
Your team Ubuntu Core Development Team is requested to review the proposed merge of ~samirakarioh/livecd-rootfs:add-metadata-rocks into livecd-rootfs:ubuntu/master.




More information about the Ubuntu-reviews mailing list