diff options
Diffstat (limited to 'src/fripost-partman-udeb/debian')
-rw-r--r-- | src/fripost-partman-udeb/debian/changelog | 5 | ||||
-rw-r--r-- | src/fripost-partman-udeb/debian/compat | 1 | ||||
-rw-r--r-- | src/fripost-partman-udeb/debian/control | 21 | ||||
-rw-r--r-- | src/fripost-partman-udeb/debian/copyright | 7 | ||||
-rw-r--r-- | src/fripost-partman-udeb/debian/install | 1 | ||||
-rwxr-xr-x | src/fripost-partman-udeb/debian/postinst | 25 | ||||
-rwxr-xr-x | src/fripost-partman-udeb/debian/rules | 3 | ||||
-rw-r--r-- | src/fripost-partman-udeb/debian/templates | 84 |
8 files changed, 147 insertions, 0 deletions
diff --git a/src/fripost-partman-udeb/debian/changelog b/src/fripost-partman-udeb/debian/changelog new file mode 100644 index 0000000..6146216 --- /dev/null +++ b/src/fripost-partman-udeb/debian/changelog @@ -0,0 +1,5 @@ +fripost-partman (0.0.0) unstable; urgency=low + + * Tests + + -- Guilhem Moulin <guilhem@fripost.org> Wed, 09 Oct 2013 17:33:16 +0200 diff --git a/src/fripost-partman-udeb/debian/compat b/src/fripost-partman-udeb/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/src/fripost-partman-udeb/debian/compat @@ -0,0 +1 @@ +7 diff --git a/src/fripost-partman-udeb/debian/control b/src/fripost-partman-udeb/debian/control new file mode 100644 index 0000000..043fa49 --- /dev/null +++ b/src/fripost-partman-udeb/debian/control @@ -0,0 +1,21 @@ +Source: fripost-partman +Section: debian-installer +Priority: optional +Maintainer: Guilhem Moulin <guilhem@fripost.org> +Build-Depends: debhelper (>= 7) + +Package: fripost-partman +XC-Package-Type: udeb +Architecture: all +Depends: cdebconf-udeb, parted-udeb, xfsprogs-udeb, hw-detect, md-modules, + mdadm-udeb, lvm2-udeb, dmsetup-udeb, ntfstools-udeb, xfs-modules, + ext2-modules, ext3-modules, openssh-server-udeb, cryptsetup-udeb, + crypto-dm-modules, ${misc:Depends} +Provides: created-fstab, made-filesystems, mounted-partitions, + partitioned-harddrives +Description: Partition Hard Drives using shell scripts. + . + Warning: This module *will* wipe your disk if you ask it to do so, without + giving you the chance to back out. Do not use this on systems you care about + unless you've made thorough tests with Virtual Machines. +XB-Installer-Menu-Item: 4199 diff --git a/src/fripost-partman-udeb/debian/copyright b/src/fripost-partman-udeb/debian/copyright new file mode 100644 index 0000000..4e26ce2 --- /dev/null +++ b/src/fripost-partman-udeb/debian/copyright @@ -0,0 +1,7 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: native package + +Files: * +Copyright: © 2013 Guilhem Moulin <guilhem@fripost.org> +License: GPL-3+ + diff --git a/src/fripost-partman-udeb/debian/install b/src/fripost-partman-udeb/debian/install new file mode 100644 index 0000000..885868e --- /dev/null +++ b/src/fripost-partman-udeb/debian/install @@ -0,0 +1 @@ +base.sh lib/*.so lib/fripost-partman diff --git a/src/fripost-partman-udeb/debian/postinst b/src/fripost-partman-udeb/debian/postinst new file mode 100755 index 0000000..6ba238e --- /dev/null +++ b/src/fripost-partman-udeb/debian/postinst @@ -0,0 +1,25 @@ +#! /bin/sh + +set -ue + +. /lib/fripost-partman/base.sh + +log "Starting..." +db_input high fripost/partition-script || true +db_go +db_get fripost/partition-script +script=/"${RET#/}" + +[ -f "$script" -a -x "$script" ] || \ + fatal "$script does not exist, or is not executable." + +log "Running $script" +log-output -t fripost-partman "$script" + +rv=$? +if [ $rv -ne 0 ]; then + log "Partitioning script failed; exited with $rv" + exit $rv +fi + +log "Partitioning appears to have completed successfully." diff --git a/src/fripost-partman-udeb/debian/rules b/src/fripost-partman-udeb/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/src/fripost-partman-udeb/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ diff --git a/src/fripost-partman-udeb/debian/templates b/src/fripost-partman-udeb/debian/templates new file mode 100644 index 0000000..00377a5 --- /dev/null +++ b/src/fripost-partman-udeb/debian/templates @@ -0,0 +1,84 @@ +Template: debian-installer/fripost-partman/title +Type: text +Description: Partition disks using a shell script + +Template: fripost/partition-script +Type: text +Description: Which script should be used for partitioning? +Extended_description: The path should be absolute, and the script must + be executable. + +Template: fripost/wipe-device +Type: select +Default: zero +Choices: none, zero, urandom, random +Description: Which kind of data fill the disk with before encryption? +Extended_description: 'none' means disks will NOT wiped, otherwise use + /dev/{zero,urandom,random} as the source data to fill disks with. + Beware that the later two may drain the entropy pool of the system! + +Template: fripost/wipe-device_progress_title +Type: text +Description: Filling ${DISK} with ${SIZE} ${WHAT} + +Template: fripost/wipe-device_progress_info +Type: text +Description: ${COMMAND} + +Template: fripost/encrypt +Type: boolean +Default: true +Description: Should the system disk be fully encrypted? (Excluding /boot.) + +Template: fripost/encryption-password +Type: password +Default: +Description: Password for full-disk encryption? +Extended_description: If left empty, a SSH daemon will be fired and the + automatic install will be interupted, waiting for the user to dump the + password on the standard input. + +Template: fripost/ssh-keypair-generation_progress_title +Type: text +Description: Generating public/private ${TYPE} key pair + +Template: fripost/encryption-slurpkey_title +Type: note +Description: Waiting for passphrase + +Template: fripost/encryption-slurpkey_text +Type: text +Description: Press 'continue' once you have sent the key + You now need to send the encryption key for the LUKS/dm-crypt volume to + this special-purpose SSH server: + . + ssh -o UserKnownHostsFile=/dev/null -T root@${IPv4} < /path/to/key + . + To defeat MiTM-attacks, please ensure that the server fingerprint matches + . + ${SSHFPR_SERVER} + . + Key(s) that are granted access have the following fingerprint: + . + ${SSHFPR_AUTHORIZED} + . + Note: This server is ephemeral, and will be replaced with a full-blown + daemon toward the end of the installation. Using /dev/null as the + Known Hosts File is meant to tell the SSH client not to remember its + public key. + +Template: fripost/cryptsetup-genkey_progress_title +Type: text +Description: Generating volume key + +Template: fripost/cryptsetup-genkey_progress_info +Type: text +Description: This will take a while if it drains the entropy pool + +Template: fripost/mkfs_progress_title +Type: text +Description: Formatting ${DEVICE} as ${TYPE} + +Template: fripost/mkfs_progress_info +Type: text +Description: ${STAGE} |