File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN chmod +x /usr/bin/chisel-wrapper
1919RUN mkdir -p /rootfs/etc \
2020 && install -d -m 0755 -o "$UID" -g "$GID" "/rootfs/home/$USER" \
2121 && echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
22- && echo -e "root:x :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
22+ && echo -e "root:! :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2323
2424RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
2525 base-files_base \
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ARG USER UID GROUP GID
2323RUN mkdir -p /rootfs/etc \
2424 && install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
2525 && echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
26- && echo -e "root:x :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
26+ && echo -e "root:! :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2727
2828FROM scratch AS image-prep
2929ENV \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN chmod +x /usr/bin/chisel-wrapper
1818RUN mkdir -p /rootfs/etc \
1919 && install -d -m 0755 -o "$UID" -g "$GID" "/rootfs/home/$USER" \
2020 && echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
21- && echo -e "root:x :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
21+ && echo -e "root:! :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2222
2323RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
2424 base-files_base \
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ARG USER UID GROUP GID
2323RUN mkdir -p /rootfs/etc \
2424 && install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
2525 && echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
26- && echo -e "root:x :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
26+ && echo -e "root:! :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2727
2828FROM scratch AS image-prep
2929ENV \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN chmod +x /usr/bin/chisel-wrapper
1818RUN mkdir -p /rootfs/etc \
1919 && install -d -m 0755 -o "$UID" -g "$GID" "/rootfs/home/$USER" \
2020 && echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
21- && echo -e "root:x :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
21+ && echo -e "root:! :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2222
2323RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
2424 base-files_base \
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ARG USER UID GROUP GID
2323RUN mkdir -p /rootfs/etc \
2424 && install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
2525 && echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
26- && echo -e "root:x :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
26+ && echo -e "root:! :0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2727
2828FROM scratch AS image-prep
2929ENV \
You can’t perform that action at this time.
0 commit comments