Package: fai-client
Version: 3.2.9
Tags: patch
setup-harddisks fails because there's a new line in the output of
parted, which has to be ignored. The line starts with Model: (see below)
Suggested patch by Michael:
--- Volumes.pm (revision 5061)
+++ Volumes.pm (working copy)
@@ -137,7 +137,7 @@
foreach my $line (@parted_print) {
# now we test line by line - some of them may be ignored
- next if ($line =~ /^Disk / || $line =~ /^\s*$/
+ next if ($line =~ /^Disk / || $line =~ /^Model: / || $line =~ /^\s*$/
|| $line =~ /^WARNING: You are not superuser/);
Debugging output:
Starting setup-storage 1.0.1
disklist was: sda
Using config file: /var/lib/fai/config/disk_config/FAIBASE
.
.
Executing: parted -s /dev/sda unit TiB print
INTERNAL ERROR in setup-storage:
Table header not seen yet
Please report this error to the Debian Bug Tracking System.
(STDOUT) Model: ATA FUJITSU MHW2120B (scsi)
(STDOUT) Disk /dev/sda: 0.11TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number Start End Size Type File system Flags
(STDOUT) 1 0.00TiB 0.00TiB 0.00TiB primary ext3 boot
(STDOUT) 2 0.00TiB 0.11TiB 0.11TiB extended
(STDOUT) 5 0.00TiB 0.00TiB 0.00TiB logical linux-swap
(STDOUT) 6 0.00TiB 0.00TiB 0.00TiB logical ext3
(STDOUT) 7 0.00TiB 0.00TiB 0.00TiB logical ext3
(STDOUT) 8 0.00TiB 0.01TiB 0.00TiB logical ext3
(STDOUT) 9 0.01TiB 0.11TiB 0.10TiB logical ext3
(STDOUT)
--
regards Thomas
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]