[Bug 1202122] [NEW] autopilot ubiquity

Dmitrijs Ledkovs launchpad at surgut.co.uk
Wed Jul 17 08:53:45 UTC 2013


Public bug reported:

1) merge autopilot tests
2) make below work as a wrapper for ubiquity or similar.
#!/bin/sh
set -e

IMGDIR=/mnt
mkfs.ext2 /dev/vda
mount /dev/vda $IMGDIR

# assuming that $IMGDIR points to a directory with 10 GB space
apt-get install mdadm --no-install-recommends
dd if=/dev/zero of=$IMGDIR/img bs=1 count=0 seek=10G
DEV=`losetup --find`
losetup $DEV $IMGDIR/img
mdadm --create /dev/md42 --force -n 1 -l raid0 $DEV

# only consider our fake device as install target
mv /bin/parted_devices /bin/parted_devices.real
echo -e '#!/bin/sh\n$0.real | grep ^/dev/md' > /bin/parted_devices
chmod 755 /bin/parted_devices

** Affects: ubiquity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1202122

Title:
  autopilot ubiquity

Status in “ubiquity” package in Ubuntu:
  New

Bug description:
  1) merge autopilot tests
  2) make below work as a wrapper for ubiquity or similar.
  #!/bin/sh
  set -e

  IMGDIR=/mnt
  mkfs.ext2 /dev/vda
  mount /dev/vda $IMGDIR

  # assuming that $IMGDIR points to a directory with 10 GB space
  apt-get install mdadm --no-install-recommends
  dd if=/dev/zero of=$IMGDIR/img bs=1 count=0 seek=10G
  DEV=`losetup --find`
  losetup $DEV $IMGDIR/img
  mdadm --create /dev/md42 --force -n 1 -l raid0 $DEV

  # only consider our fake device as install target
  mv /bin/parted_devices /bin/parted_devices.real
  echo -e '#!/bin/sh\n$0.real | grep ^/dev/md' > /bin/parted_devices
  chmod 755 /bin/parted_devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1202122/+subscriptions




More information about the foundations-bugs mailing list