[debian-edu-commits] debian-edu/ 01/01: Add code in run-at-firstboot to commit /etc/ changes in LTSP chroots using etckeeper.
Petter Reinholdtsen
pere at moszumanska.debian.org
Fri Sep 26 12:40:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository debian-edu-config.
commit 887a2bcf7692c3aa62649968cbf20ad085ed2fc0
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Fri Sep 26 14:40:12 2014 +0200
Add code in run-at-firstboot to commit /etc/ changes in LTSP chroots using etckeeper.
---
debian/changelog | 2 ++
share/debian-edu-config/tools/run-at-firstboot | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 721b8f3..2a49846 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,8 @@ debian-edu-config (1.806) UNRELEASED; urgency=low
resolvconf update.d fragment to our tools directory, and call it on
first boot too, to get a working resolv.conf in the LTSP chroots
also on the combined server.
+ * Add code in run-at-firstboot to commit /etc/ changes in LTSP chroots
+ using etckeeper.
-- Wolfgang Schweer <wschweer at arcor.de> Thu, 25 Sep 2014 23:56:27 +0200
diff --git a/share/debian-edu-config/tools/run-at-firstboot b/share/debian-edu-config/tools/run-at-firstboot
index 9e850fd..ade2e36 100755
--- a/share/debian-edu-config/tools/run-at-firstboot
+++ b/share/debian-edu-config/tools/run-at-firstboot
@@ -93,6 +93,13 @@ if [ -x /usr/bin/etckeeper ] ; then
etckeeper commit "End of first boot" > /dev/null 2>&1 || true
fi
+for f in /opt/ltsp/*/usr/bin/etckeeper ; do
+ if [ -x "$f" ] ; then
+ arch=$(echo $f | cut -d/ -f4)
+ ltsp-chroot -a "$arch" etckeeper commit "End of first boot" > /dev/null 2>&1 || true
+ fi
+done
+
info "done executing run-at-firstboot script."
disable_exception
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list