Skip to content

Commit

Permalink
image: unset password reset date
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Oct 30, 2024
1 parent aa7d47e commit 4cc5e08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions image/base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ copy_to_directory(
mkosi_image(
name = "base_" + kernel_variant,
srcs = [
"mkosi.finalize",
"mkosi.postinst",
"mkosi.prepare",
] + glob([
Expand Down
8 changes: 8 additions & 0 deletions image/base/mkosi.finalize
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euxo pipefail

# Disable password age for Constellation sysusers.
tmp=$(mktemp)
cp -a "${BUILDROOT}/etc/shadow-" "${tmp}"
mkosi-chroot chage -d "20014" etcd
cp -a "${tmp}" "${BUILDROOT}/etc/shadow-"

0 comments on commit 4cc5e08

Please sign in to comment.