diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-03-07 10:11:35 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-03-07 10:11:35 +0100 |
| commit | ab8bef973e85760d78cc93c2eafd7d48428dd2b7 (patch) | |
| tree | b8ca3f99abc79bf47ebf7995da8522a3284341af | |
| parent | 0c4c9e5f875e423db627ec5010cfeb1beb3fc113 (diff) | |
| parent | a286670358f07e66dd14fd10707c46ce4d55e0fa (diff) | |
Merge pull request #26 from lorenzo-stoakes/fix-create-image-path
Fix create image PATH
| -rw-r--r-- | AUTHORS | 1 | ||||
| -rw-r--r-- | CONTRIBUTORS | 1 | ||||
| -rwxr-xr-x | tools/create-image.sh | 4 |
3 files changed, 4 insertions, 2 deletions
@@ -7,3 +7,4 @@ Google Inc. Baozeng Ding +Lorenzo Stoakes diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e5dc4a21a..c48c9101d 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -8,3 +8,4 @@ Google Inc. Andrey Konovalov David Drysdale Baozeng Ding +Lorenzo Stoakes diff --git a/tools/create-image.sh b/tools/create-image.sh index 3f62c961b..3b73b95be 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -24,7 +24,8 @@ ssh-keygen -f ssh/id_rsa -t rsa -N '' cat ssh/id_rsa.pub | sudo tee wheezy/root/.ssh/authorized_keys # Install some misc packages. -sudo chroot wheezy /bin/bash -c "apt-get update; ( yes | apt-get install curl tar time strace)" +sudo chroot wheezy /bin/bash -c "export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; " \ +"apt-get update; apt-get install --yes curl tar time strace" # Build a disk image dd if=/dev/zero of=wheezy.img bs=1M seek=1023 count=1 @@ -33,4 +34,3 @@ sudo mkdir -p /mnt/wheezy sudo mount -o loop wheezy.img /mnt/wheezy sudo cp -a wheezy/. /mnt/wheezy/. sudo umount /mnt/wheezy - |
