[debian-edu-commits] debian-edu/ 01/01: Add partman/not-enough-space.d hook to provide warning before the partitioning take place if the disk is too small.
Petter Reinholdtsen
pere at moszumanska.debian.org
Mon Sep 29 22:30:20 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-install.
commit 8a16f93ee29942b136c2dfba7eb8d545db133839
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Tue Sep 30 00:30:08 2014 +0200
Add partman/not-enough-space.d hook to provide warning before the partitioning take place if the disk is too small.
---
debian/changelog | 7 +++++++
debian/debian-edu-profile-udeb.dirs | 1 +
debian/rules | 1 +
lib/partman/not-enough-space.d/01debian-edu-install-udeb | 10 ++++++++++
4 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 8c76347..a477c6b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debian-edu-install (1.805) UNRELEASED; urgency=low
+
+ * Add partman/not-enough-space.d hook to provide warning before the
+ partitioning take place if the disk is too small.
+
+ -- Petter Reinholdtsen <pere at debian.org> Tue, 30 Sep 2014 00:29:06 +0200
+
debian-edu-install (1.804) unstable; urgency=high
* Disable the quick install using eatmydata until bug #759590 is
diff --git a/debian/debian-edu-profile-udeb.dirs b/debian/debian-edu-profile-udeb.dirs
index 0aa5585..13b34db 100644
--- a/debian/debian-edu-profile-udeb.dirs
+++ b/debian/debian-edu-profile-udeb.dirs
@@ -9,3 +9,4 @@ lib/partman/recipes
lib/partman/recipes-powerpc-powermac_newworld
lib/partman/recipes-powerpc-prep
lib/partman/commit.d
+lib/partman/not-enough-space.d
diff --git a/debian/rules b/debian/rules
index 939e492..21c5b52 100755
--- a/debian/rules
+++ b/debian/rules
@@ -59,6 +59,7 @@ install-debian-edu-profile-udeb: install-common
done
$(MAKE) install-partman-recipes DESTDIR=$(CURDIR)/debian/debian-edu-profile-udeb
$(INSTALL) lib/partman/commit.d/* $(CURDIR)/debian/debian-edu-profile-udeb/lib/partman/commit.d
+ $(INSTALL) lib/partman/not-enough-space.d/01debian-edu-install-udeb $(CURDIR)/debian/debian-edu-profile-udeb/lib/partman/not-enough-space.d/01debian-edu-install-udeb
$(INSTALL) lib/debian-edu-common $(CURDIR)/debian/debian-edu-profile-udeb/lib/
$(INSTALL) debian-edu-profile $(CURDIR)/debian/debian-edu-profile-udeb/usr/bin
touch $(CURDIR)/debian/debian-edu-profile-udeb/etc/uselvm
diff --git a/lib/partman/not-enough-space.d/01debian-edu-install-udeb b/lib/partman/not-enough-space.d/01debian-edu-install-udeb
new file mode 100755
index 0000000..a5b423a
--- /dev/null
+++ b/lib/partman/not-enough-space.d/01debian-edu-install-udeb
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Handle too small disks, warn user before modifing the disk
+# partitioning.
+
+recipe="$1"
+free_size="$2"
+min_size="$3"
+
+exec report-if-disk-too-small
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-install.git
More information about the debian-edu-commits
mailing list