Package: fai-setup-storage
Version: 4.0.6
Severity: normal
Tags: patch

Dear Maintainer,

When trying to use both GPT and LUKS with FAI, the installation fails during
the partition task. It fails while trying to execute :
echo ,,,* | sfdisk --force $boot_disk -N1
sfdisk tries to reload the partition table, and is unable to do so because the
disk is already used by luks (because of the cryptsetyp luksOpen command,
called before the sfdisk command).

The attached patch fixes the problem by changing the dependencies on the luks
stuffs.


-- System Information:
Debian Release: 7.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fai-setup-storage depends on:
ii  liblinux-lvm-perl         0.16-1
ii  libparse-recdescent-perl  1.967009+dfsg-1
ii  parted                    2.3-12
ii  perl                      5.14.2-21

Versions of packages fai-setup-storage recommends:
ii  lvm2   2.02.95-7
ii  mdadm  3.2.5-5

Versions of packages fai-setup-storage suggests:
ii  cryptsetup     2:1.4.3-4
ii  dmsetup        2:1.02.74-7
ii  dosfstools     3.0.13-1
pn  jfsutils       <none>
ii  ntfsprogs      1:2012.1.15AR.5-2.1
pn  reiserfsprogs  <none>
pn  xfsprogs       <none>
diff -urwb fai-4.0.6/lib/setup-storage/Commands.pm fai-4.0.6.new/lib/setup-storage/Commands.pm
--- fai-4.0.6/lib/setup-storage/Commands.pm	2012-04-09 13:24:56.000000000 +0200
+++ fai-4.0.6.new/lib/setup-storage/Commands.pm	2013-05-30 11:46:46.143963327 +0200
@@ -223,7 +223,7 @@
       my $enc_dev_short_name = $enc_dev_name;
       $enc_dev_short_name =~ s#^/dev/mapper/##;
 
-      my $pre_dep = "exist_$real_dev";
+      my $pre_dep = "gpt_bios_fake_bootable";
 
       if ($FAI::configs{$config}{randinit}) {
         # ignore exit 1 caused by reaching the end of $real_dev

Reply via email to