diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/choose_partition/_numbers /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/choose_partition/_numbers --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/choose_partition/_numbers 2007-06-19 12:02:03.174341000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/choose_partition/_numbers 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -10 dmraid diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/choose_partition/dmraid/choices /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/choose_partition/dmraid/choices --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/choose_partition/dmraid/choices 2007-06-19 12:02:03.174341000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/choose_partition/dmraid/choices 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -#!/bin/sh - -. /lib/partman/definitions.sh - -dev=$1 -id=$2 - -cd $dev - -type dmraid >/dev/null 2>&1 || exit 0 -[ "$(dmraid -s -c | grep -v "No RAID disks")" ] || exit 0 - -db_metaget partman-dmraid/text/commit_dmraid description - -printf "dmraid\t${RET}\n" diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/choose_partition/dmraid/do_option /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/choose_partition/dmraid/do_option --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/choose_partition/dmraid/do_option 2007-06-30 10:19:47.500643000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/choose_partition/dmraid/do_option 1970-01-01 01:00:00.000000000 +0100 @@ -1,103 +0,0 @@ -#!/bin/sh - -. /lib/partman/definitions.sh - -# TODO: Add error checking and error messages !!!!!!!!!!!! - -OLDIFS="$IFS" - -create_ext2 () { - frpart=${1##*/} - db_subst partman-dmraid/progress/createfs/info DEVICE $frpart - db_progress INFO partman-dmraid/progress/createfs/info - # TODO: check that ext2 is actually available - log-output -t partman-dmraid mkfs.ext2 -q $1 -} - -# Save status (including size) of current dmraid partitions -DM_STATUS="$(dmsetup status --target linear)" - -# If a SATA RAID partition is in use as swap, it cannot be removed -disable_swap - -# Make sure dmraid devices get re-enabled on errors -trap 'log-output -t partman-dmraid dmraid -ay' HUP INT QUIT PIPE TERM EXIT - -# Remove existing devmapper devices for SATA RAID partitions -# TODO: should probably umount partitions if device is in use -for frdisk in $(dmraid -s -c | grep -v "No RAID disks"); do - for frpart in $(ls /dev/mapper/$frdisk* 2>/dev/null); do - [ $frpart != /dev/mapper/$frdisk ] || continue - - # Remove pending actions on the partitions - devdir=$DEVICES/$(echo $frpart | sed 's:/:=:g') - if [ -d $devdir ]; then - rm -f $devdir/*/method - rm -f $devdir/*/format - fi - - # Remove the device mapper node - dmsetup remove $frpart || exit 1 - done -done - -# Commit the changes -confirm_changes "partman-dmraid" || exit 0 -for s in /lib/partman/commit.d/*; do - if [ -x $s ]; then - $s || { - db_input critical partman-dmraid/commit_failed || true - db_go || true - for s in /lib/partman/init.d/*; do - if [ -x $s ]; then - $s || exit 255 - fi - done - exit 0 - } - fi -done - -# Reset signal handling to defaults -trap - HUP INT QUIT PIPE TERM EXIT - -# Refresh dmraid partition info -log-output -t partman-dmraid dmraid -ay - -# Use number of linear devices as approximation of steps -PB_MAX=$(dmsetup status --target linear | wc -l) -db_progress START 0 $PB_MAX partman-dmraid/progress/createfs/title - -# Restore IFS as it gets clobbered somewhere -IFS="$OLDIFS" - -# Create an initial filesystem so new partitions are detected properly -# HACKALERT: we assume that the size of the device is a sufficient indicator -# that a partition was changed -# FIXME: this does not work if the partition number changes! - -for frdisk in $(dmraid -s -c | grep -v "No RAID disks"); do - for frpart in $(ls /dev/mapper/$frdisk* 2>/dev/null); do - [ $frpart != /dev/mapper/$frdisk ] || continue - if oldstatus=$(echo "$DM_STATUS" | grep "^${frpart#/dev/mapper/}:"); then - oldsize=$(echo $oldstatus | cut -d" " -f 3) - # If the device is passed, it is not included in the output! - newsize=$(dmsetup status $frpart | cut -d" " -f 2) - if [ $newsize -ne $oldsize ]; then - create_ext2 $frpart - fi - else - create_ext2 $frpart - fi - db_progress STEP 1 - done -done - -db_progress SET $PB_MAX -db_progress STOP - -stop_parted_server - -restart_partman - -exit 0 diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/commit.d/_numbers /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/commit.d/_numbers --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/commit.d/_numbers 1970-01-01 01:00:00.000000000 +0100 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/commit.d/_numbers 2009-09-08 20:16:51.266457190 +0200 @@ -0,0 +1 @@ +31 partition_multipath diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/commit.d/partition_multipath /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/commit.d/partition_multipath --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/commit.d/partition_multipath 1970-01-01 01:00:00.000000000 +0100 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/commit.d/partition_multipath 2009-09-08 20:16:51.266457190 +0200 @@ -0,0 +1,18 @@ +#!/bin/sh + +. /lib/partman/definitions.sh + +disable_swap + +for dev in $DEVICES/*; do + [ -d "$dev" ] || continue + cd $dev + + [ -f device ] || continue + [ -f multipath ] || continue + + # update partition mappings + kpartx -d -p -part $(cat device) + kpartx -a -p -part $(cat device) +done + diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/changelog /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/changelog --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/changelog 2007-06-30 11:06:07.749545000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/changelog 2009-09-08 20:16:51.266457190 +0200 @@ -1,9 +1,5 @@ -partman-dmraid (1) unstable; urgency=low +partman-multipath (1) unstable; urgency=low * Initial version. - -- Frans Pop Sat, 30 Jun 2007 11:05:12 +0200 - -Local Variables: -coding: utf-8 -End: + -- Guido Guenther Wed, 26 Mar 2008 10:09:08 +0100 diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/control /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/control --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/control 2007-06-30 10:19:47.500643000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/control 2009-09-08 20:16:51.266457190 +0200 @@ -1,13 +1,12 @@ -Source: partman-dmraid +Source: partman-multipath Section: debian-installer -Priority: standard +Priority: optional Maintainer: Debian Install System Team -Uploaders: Frans Pop +Uploaders: Guido Guenther Build-Depends: debhelper (>= 4.2.0), po-debconf (>= 0.5.0) -XS-Vcs-Svn: svn://svn.debian.org/d-i/trunk/packages/partman/partman-dmraid -Package: partman-dmraid +Package: partman-multipath XC-Package-Type: udeb Architecture: all -Depends: ${misc:Depends}, partman-base, di-utils (>= 1.14), dmraid-udeb, dmsetup-udeb -Description: Adds support for Serial ATA RAID (dmraid) to partman +Depends: ${misc:Depends}, partman-base, multipath-udeb, dmsetup-udeb +Description: Adds support for multipath block devices to partman diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/copyright /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/copyright --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/copyright 2007-06-19 12:02:03.174341000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/copyright 2009-09-08 20:16:51.266457190 +0200 @@ -1,6 +1,8 @@ -Authors: Frans Pop +Authors: Guido Guenther -Copyright 2007 Frans Pop +Copyright 2007 Guido Guenther + +based on partman-dmraid by Frans Pop This package is under the GNU General Public License, version 2, which can usually be found in /usr/share/common-licenses/GPL-2 on Debian systems. diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/partman-dmraid.templates /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/partman-dmraid.templates --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/partman-dmraid.templates 2007-06-30 10:43:43.221153000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/partman-dmraid.templates 1970-01-01 01:00:00.000000000 +0100 @@ -1,62 +0,0 @@ -Template: partman-dmraid/confirm -Type: boolean -Default: false -#flag:translate!:3 -_Description: Write changes in SATA RAID partitioning to disk? - Any changes you have made in the partitioning of your Serial ATA RAID - disks need to be written to disk before the partitions can be used. - Any other pending changes will be written to disk as well. These changes - cannot be undone. - . - ${ITEMS} - -Template: partman-dmraid/confirm_nochanges -Type: note -_Description: No pending changes - There are no changes to commit. - -Template: partman-dmraid/commit_failed -Type: error -_Description: Failed to write SATA RAID partitioning changes - An unexpected error occurred while writing the changes to the disks. - . - Check /var/log/syslog or see virtual console 4 for the details. - -Template: partman-dmraid/progress/createfs/title -Type: text -_Description: Creating initial file system - -Template: partman-dmraid/progress/createfs/info -Type: text -_Description: Creating initial ext2 file system on ${DEVICE}... - -Template: partman-dmraid/text/commit_dmraid -Type: text -# Main menu item -# Use infinitive form -_Description: Write changes in SATA RAID partitioning to disk - -Template: partman-dmraid/experimental -Type: boolean -Default: false -_Description: Continue with partitioning? - The support for SATA RAID disks (using dmraid) in the installer is - experimental. You should make sure that you have a backup of any - data on your system that you do not want to lose! - . - There is currently no real support for SATA RAID disks in either - the partitioner or the boot loaders. The installer works around this, - but it means that the installation is not completely straightforward - and that there are some important limitations. - . - More detailed information about SATA RAID support and how to use it, - especially during partitioning and boot loader installation, can be - found at: http://wiki.debian.org/DebianInstaller/SataRaid. - . - Please read that page carefully before proceeding. - -Template: debian-installer/partman-dmraid/title -Type: text -# Main menu item -# Use infinitive form -_Description: Write changes in SATA RAID partitioning to disk diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/partman-multipath.install /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/partman-multipath.install --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/partman-multipath.install 1970-01-01 01:00:00.000000000 +0100 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/partman-multipath.install 2009-09-08 20:16:51.266457190 +0200 @@ -0,0 +1 @@ +post-base-installer.d/60multipath usr/lib/post-base-installer.d/ diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/po/POTFILES.in /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/po/POTFILES.in --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/po/POTFILES.in 2007-06-19 12:02:03.174341000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/po/POTFILES.in 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -[type: gettext/rfc822deb] partman-dmraid.templates diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/po/output /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/po/output --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/po/output 2007-06-19 12:02:03.174341000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/po/output 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -2 utf8 diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/po/templates.pot /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/po/templates.pot --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/po/templates.pot 2007-06-30 10:45:21.325400000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/po/templates.pot 1970-01-01 01:00:00.000000000 +0100 @@ -1,127 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: debian-boot@lists.debian.org\n" -"POT-Creation-Date: 2007-06-30 10:44+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:1001 -msgid "Write changes in SATA RAID partitioning to disk?" -msgstr "" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:1001 -msgid "" -"Any changes you have made in the partitioning of your Serial ATA RAID disks " -"need to be written to disk before the partitions can be used. Any other " -"pending changes will be written to disk as well. These changes cannot be " -"undone." -msgstr "" - -#. Type: note -#. Description -#: ../partman-dmraid.templates:2001 -msgid "No pending changes" -msgstr "" - -#. Type: note -#. Description -#: ../partman-dmraid.templates:2001 -msgid "There are no changes to commit." -msgstr "" - -#. Type: error -#. Description -#: ../partman-dmraid.templates:3001 -msgid "Failed to write SATA RAID partitioning changes" -msgstr "" - -#. Type: error -#. Description -#: ../partman-dmraid.templates:3001 -msgid "An unexpected error occurred while writing the changes to the disks." -msgstr "" - -#. Type: error -#. Description -#: ../partman-dmraid.templates:3001 -msgid "Check /var/log/syslog or see virtual console 4 for the details." -msgstr "" - -#. Type: text -#. Description -#: ../partman-dmraid.templates:4001 -msgid "Creating initial file system" -msgstr "" - -#. Type: text -#. Description -#: ../partman-dmraid.templates:5001 -msgid "Creating initial ext2 file system on ${DEVICE}..." -msgstr "" - -#. Type: text -#. Description -#. Main menu item -#. Use infinitive form -#. Type: text -#. Description -#. Main menu item -#. Use infinitive form -#: ../partman-dmraid.templates:6001 ../partman-dmraid.templates:8001 -msgid "Write changes in SATA RAID partitioning to disk" -msgstr "" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:7001 -msgid "Continue with partitioning?" -msgstr "" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:7001 -msgid "" -"The support for SATA RAID disks (using dmraid) in the installer is " -"experimental. You should make sure that you have a backup of any data on " -"your system that you do not want to lose!" -msgstr "" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:7001 -msgid "" -"There is currently no real support for SATA RAID disks in either the " -"partitioner or the boot loaders. The installer works around this, but it " -"means that the installation is not completely straightforward and that there " -"are some important limitations." -msgstr "" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:7001 -msgid "" -"More detailed information about SATA RAID support and how to use it, " -"especially during partitioning and boot loader installation, can be found " -"at: http://wiki.debian.org/DebianInstaller/SataRaid." -msgstr "" - -#. Type: boolean -#. Description -#: ../partman-dmraid.templates:7001 -msgid "Please read that page carefully before proceeding." -msgstr "" diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/rules /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/rules --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/debian/rules 2007-06-19 12:02:03.174341000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/debian/rules 2009-09-08 20:16:51.266457190 +0200 @@ -5,7 +5,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -export PACKAGE = partman-dmraid +export PACKAGE = partman-multipath build: # Ye olde no-op. @@ -20,12 +20,14 @@ dh_testdir dh_testroot dh_clean -k - debian/install-rc choose_partition + dh_installdirs debian/install-rc init.d + debian/install-rc commit.d binary-indep: build install dh_testdir dh_testroot + dh_install dh_installdebconf dh_fixperms dh_installdeb diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/_numbers /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/_numbers --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/_numbers 2007-06-30 10:19:47.500643000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/_numbers 2009-09-08 20:16:51.266457190 +0200 @@ -1,2 +1 @@ -02 sataraid_warning -50 sataraid_flag +50 multipath_flag diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/multipath_flag /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/multipath_flag --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/multipath_flag 1970-01-01 01:00:00.000000000 +0100 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/multipath_flag 2009-09-08 20:16:51.266457190 +0200 @@ -0,0 +1,19 @@ +#!/bin/sh + +# This script sets the multipath flag for multipath'ed devices + +for dev in /var/lib/partman/devices/*; do + [ -d "$dev" ] || continue + cd $dev + + [ -f device ] || continue + for frdisk in $(multipath -l | grep '^mpath[0-9]\+ ' | sed 's/\(mpath[0-9]\+\) .*/\1/'); do + case $(cat device) in + /dev/mapper/$frdisk) + >multipath + break + ;; + esac + done +done + diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/sataraid_flag /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/sataraid_flag --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/sataraid_flag 2007-06-30 10:19:47.500643000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/sataraid_flag 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -#!/bin/sh - -# This script sets the sataraid flag for devices that are recognized by dmraid - -for dev in /var/lib/partman/devices/*; do - [ -d "$dev" ] || continue - cd $dev - - [ -f device ] || continue - for frdisk in $(dmraid -s -c | grep -v "No RAID disks"); do - case $(cat device) in - /dev/mapper/$frdisk) - >sataraid - break - ;; - esac - done -done diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/sataraid_warning /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/sataraid_warning --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/init.d/sataraid_warning 2007-06-30 10:19:47.500643000 +0200 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/init.d/sataraid_warning 1970-01-01 01:00:00.000000000 +0100 @@ -1,25 +0,0 @@ -#! /bin/sh - -# Display a warning that Serial ATA RAID support is experimental. -# This script should be removed if that is no longer the case! - -. /usr/share/debconf/confmodule - -# Only display the warning the first time partman is initialized -if [ -f /var/lib/partman/sataraid-warning ]; then - exit 0 -fi - -if type dmraid >/dev/null 2>&1; then - if [ "$(dmraid -c -s)" != "No RAID disks" ]; then - db_input critical partman-dmraid/experimental - db_go || exit 10 - db_get partman-dmraid/experimental - if [ "$RET" = false ]; then - exit 10 - fi - fi -fi - -[ -d /var/lib/partman ] || mkdir -p /var/lib/partman -> /var/lib/partman/sataraid-warning diff --recursive --new-file --unified --exclude=.svn --exclude=.git /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/post-base-installer.d/60multipath /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/post-base-installer.d/60multipath --- /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/svn/post-base-installer.d/60multipath 1970-01-01 01:00:00.000000000 +0100 +++ /home/max/tmp/tmp.3D5O04OELc/partman-dmraid/1/git/post-base-installer.d/60multipath 2009-09-08 20:16:51.266457190 +0200 @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +if [ $(multipath -l | grep '^mpath[0-9]\+' | wc -l) -eq 0 ]; then + exit 0 +fi + +apt-install multipath-tools-boot || true + +if [ -r /etc/multipath.conf ]; then + cp /etc/multipath.conf /target/etc/multipath.conf +fi + +# copy over the persistent binding +if [ -r /var/lib/multipath/bindings ]; then + mkdir -p /target/var/lib/multipath + cp /var/lib/multipath/bindings /target/var/lib/multipath/ +fi + +# the initramfs will be updated by the kernel installation