Skip to content

Commit

Permalink
[build]
Browse files Browse the repository at this point in the history
fixed blank variables
  • Loading branch information
matt2005 committed Oct 16, 2020
1 parent 4a9b6cc commit e527265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stage3/03-crankshaft-base/02-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ sed -i 's/#Banner none/Banner \/etc\/issue.net/' /etc/ssh/sshd_config
sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' /etc/ssh/sshd_config

# OS Name
STRING="Welcome to Crankshaft CarOS (${IMG_DATE} / Build ${BUILDHASH})"
STRING="Welcome to Crankshaft CarOS (${IMG_DATE} / Build ${GIT_HASH})"
#sed -i "s/PRETTY_NAME=.*/PRETTY_NAME=${STRING}/g" /usr/lib/os-release
cp /usr/lib/os-release /usr/lib/os-release.bak
sed -i '/PRETTY_NAME=/d' /usr/lib/os-release.bak
Expand Down
6 changes: 3 additions & 3 deletions stage3/03-crankshaft-base/05-run-chroot.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash -e

cat > /etc/crankshaft.date << EOF
${BUILDDATE}
${IMG_DATE}
EOF

cat > /etc/crankshaft.build << EOF
${BUILDHASH}
${GIT_HASH}
EOF

cat > /etc/crankshaft.branch << EOF
${BUILDBRANCH}
${GIT_BRANCH}
EOF

0 comments on commit e527265

Please sign in to comment.