Skip to content

Commit 586fc12

Browse files
authored
Merge pull request #1445 from flatcar/tormath1/gcp-oslogin
gcp: fixed OS Login enabling
2 parents 97c6cf5 + 31f4f31 commit 586fc12

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- GCP: Fixed OS Login enabling ([scripts#1445](https://github.com/flatcar/scripts/pull/1445))

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/units/oem-gce-enable-oslogin.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Before=sshd.socket
88

99
[Service]
1010
Type=oneshot
11+
RemainAfterExit=true
1112

1213
ExecStart=/oem/bin/enable-oslogin
1314

sdk_container/src/third_party/coreos-overlay/net-misc/openssh/openssh-9.5_p1.ebuild renamed to sdk_container/src/third_party/coreos-overlay/net-misc/openssh/openssh-9.5_p1-r1.ebuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ insert_include() {
232232
local src_config="${1}" options="${2}" includedir="${3}"
233233
local name copy regexp_options regexp lineno comment_options
234234

235+
if [[ ! "${includedir}" =~ ^/.* ]]; then
236+
die "includir must be an absolute path (i.e, starting with /). Got: ${includedir}"
237+
fi
238+
235239
name=${src_config##*/}
236240
copy="${T}/${name}"
237241
cp -a "${src_config}" "${copy}" || die
@@ -251,7 +255,7 @@ insert_include() {
251255
head -n "${lineno}" "${copy}" || die
252256
cat <<-EOF || die
253257
# Make sure that all ${comment_options} options are below this Include!
254-
Include "${EPREFIX}/${includedir}/*.conf"
258+
Include "${EPREFIX}${includedir}/*.conf"
255259
256260
EOF
257261
tail -n "+${lineno}" "${copy}" || die

0 commit comments

Comments
 (0)