Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
Improve MOTD; don't need to manually run-parts if PAM is fixed
Browse files Browse the repository at this point in the history
/run is a ramdisk, anyway.
  • Loading branch information
decklin committed Jan 10, 2017
1 parent 082147a commit ff5557c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions provision-files/etc/update-motd.d/99-railsbridge
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ will appear here in /vagrant. This lets you edit files with your
Windows or mac OS text editor, and run them here in the VM.
To leave the virtual machine, type this and press return:
exit
EOF
3 changes: 3 additions & 0 deletions provision-root-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ rm -rf /tmp/provision-files
rm -rf /usr/local/src/ruby-*
rm -rf /usr/local/src/chruby-*

# Work around MOTD cruft from https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1563854
rm -f /var/lib/update-notifier/updates-available

# Clean up APT cache and zero out disk to reduce image size
apt-get clean
dd if=/dev/zero of=/EMPTY bs=1M
Expand Down
6 changes: 3 additions & 3 deletions provision-root-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ apt-get install -q -y make nodejs sqlite3 libsqlite3-dev
# Copy our files into place
rsync -rtv /tmp/provision-files/etc/ /etc/
rsync -rtv /tmp/provision-files/usr/local/bin/ /usr/local/bin/
# Force MOTD generation
rm -f /etc/update-motd.d/51-cloudguest
run-parts --lsbsysinit /etc/update-motd.d > /run/motd.dynamic

# Clean up MOTD; don't need these Ubuntu links
rm -f /etc/update-motd.d/10-help-text /etc/update-motd.d/51-cloudguest

# Do all source installation from this dir, which we'll clean up in another script
mkdir -p /usr/local/src && cd /usr/local/src
Expand Down

0 comments on commit ff5557c

Please sign in to comment.