diff --git a/kubernetes/docker-distribution/debian/deb_patches/0002-no-gecos.patch b/kubernetes/docker-distribution/debian/deb_patches/0002-no-gecos.patch new file mode 100644 index 000000000..c114963a8 --- /dev/null +++ b/kubernetes/docker-distribution/debian/deb_patches/0002-no-gecos.patch @@ -0,0 +1,28 @@ +From 4b27111fbe6b626d08e212eb48693a228da203bc Mon Sep 17 00:00:00 2001 +From: Charles Short +Date: Tue, 7 Dec 2021 18:49:39 +0000 +Subject: [PATCH] Do not set gecos when creating user + +Remove the gecos creation since it causes issue while running +debootstrap. + +Signed-off-by: Charles Short +--- + debian/docker-registry.postinst | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/debian/docker-registry.postinst b/debian/docker-registry.postinst +index 96ded3c..13df951 100755 +--- a/debian/docker-registry.postinst ++++ b/debian/docker-registry.postinst +@@ -7,7 +7,6 @@ if [ "$1" = 'configure' ]; then + --home /var/lib/docker-registry \ + --no-create-home \ + --group \ +- --gecos 'Docker Registry' \ + docker-registry + fi + +-- +2.30.2 + diff --git a/kubernetes/docker-distribution/debian/deb_patches/series b/kubernetes/docker-distribution/debian/deb_patches/series index 92a33b67b..c3f7c55b9 100644 --- a/kubernetes/docker-distribution/debian/deb_patches/series +++ b/kubernetes/docker-distribution/debian/deb_patches/series @@ -1 +1,2 @@ 0001-update-paths-and-service.patch +0002-no-gecos.patch