@@ -55,8 +55,7 @@ COPY --from=debian /sbin/fsck /sbin/fsck
55
55
COPY --from=debian /sbin/fsck* /sbin/
56
56
COPY --from=debian /sbin/fsck.xfs /sbin/fsck.xfs
57
57
# Add dependencies for LVM
58
- COPY --from=debian /etc/lvm /etc/lvm
59
- COPY --from=debian /etc/lvm* /etc/
58
+ COPY --from=debian /etc/lvm /lvm-tmp/lvm
60
59
COPY --from=debian /lib/systemd/system/blk-availability.service /lib/systemd/system/blk-availability.service
61
60
COPY --from=debian /lib/systemd/system/lvm2-lvmpolld.service /lib/systemd/system/lvm2-lvmpolld.service
62
61
COPY --from=debian /lib/systemd/system/lvm2-lvmpolld.socket /lib/systemd/system/lvm2-lvmpolld.socket
@@ -98,6 +97,7 @@ COPY --from=debian /bin/date /bin/date
98
97
COPY --from=debian /bin/grep /bin/grep
99
98
COPY --from=debian /bin/sed /bin/sed
100
99
COPY --from=debian /bin/ln /bin/ln
100
+ COPY --from=debian /bin/cp /bin/cp
101
101
COPY --from=debian /bin/udevadm /bin/udevadm
102
102
103
103
# Copy shared libraries into distroless base.
@@ -144,12 +144,6 @@ COPY --from=debian /usr/lib/${LIB_DIR_PREFIX}-linux-gnu/libblkid.so.1 \
144
144
# Copy NVME support required script and rules into distroless base.
145
145
COPY deploy/kubernetes/udev/google_nvme_id /lib/udev_containerized/google_nvme_id
146
146
147
- SHELL ["/bin/bash" , "-c" ]
148
- RUN /bin/sed -i -e "s/.*allow_mixed_block_sizes = 0.*/ allow_mixed_block_sizes = 1/" /etc/lvm/lvm.conf
149
- RUN /bin/sed -i -e "s/.*udev_sync = 1.*/ udev_sync = 0/" /etc/lvm/lvm.conf
150
- RUN /bin/sed -i -e "s/.*udev_rules = 1.*/ udev_rules = 0/" /etc/lvm/lvm.conf
151
- RUN /bin/sed -i -e "s/.*locking_dir = .*/ locking_dir = \"\/ tmp\" /" /etc/lvm/lvm.conf
152
-
153
147
154
148
# Build stage used for validation of the output-image
155
149
# See validate-container-linux-* targets in Makefile
@@ -162,5 +156,5 @@ RUN /print-missing-deps.sh
162
156
163
157
# Final build stage, create the real Docker image with ENTRYPOINT
164
158
FROM output-image
165
-
166
- ENTRYPOINT ["/gce-pd-csi- driver" ]
159
+ COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/initialize-driver.sh /initialize-driver.sh
160
+ ENTRYPOINT ["/initialize- driver.sh " ]
0 commit comments