This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -x | |
| set -e | |
| DEV=/dev/sdb | |
| if ! sudo parted -lm 2>/dev/null | grep scsi | grep "$DEV" > /dev/null; then | |
| echo "refusing to work on a device that is not a scsi disk" >&2 | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -exu | |
| directory=ubuntu-xenial-robot | |
| debootstrap --variant=minbase --include=dbus,systemd-sysv xenial "$directory" http://archive.ubuntu.com/ubuntu/ | |
| systemd-nspawn --boot --resolv-conf=copy-host --directory="$directory" & | |
| pid=$! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -exu | |
| directory=ubuntu-xenial-robot | |
| debootstrap --variant=minbase --include=dbus,systemd-sysv xenial "$directory" http://archive.ubuntu.com/ubuntu/ | |
| systemd-nspawn --boot --resolv-conf=copy-host --directory="$directory" & | |
| pid=$! |
OlderNewer