]> xenbits.xensource.com Git - osstest.git/commit
preseed_create: osstest-erase-other-disks: workaround creating /dev/sdXD files
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 11 Oct 2023 11:02:55 +0000 (11:02 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 28 Mar 2024 16:51:52 +0000 (16:51 +0000)
commitd623f7271cdfd80449e3cb3c5be8184fccba899f
tree9a7d4be13a9dac516dfb01aed6ccfa73b342ee98
parent577157ed87fd79a1aebe592c47bc032f60e1c815
preseed_create: osstest-erase-other-disks: workaround creating /dev/sdXD files

Sometime, it can happen that the erase-other-disks script fails and
indicate that /dev/sda1 isn't a block device anymore. This happened
when /dev/sda was erased before /dev/sda1. So to avoid this, we will
zero the partitions of ${disk} first, and hopefully the error won't
happen again.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Osstest/Debian.pm