summaryrefslogtreecommitdiff
path: root/debvm-create
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2022-12-21 12:29:14 +0100
committerHelmut Grohne <helmut@subdivi.de>2022-12-21 12:29:14 +0100
commit0434e4b932a1f94725b423925d8583ba03900496 (patch)
tree0eb05e98d8f12c5784801569b9047fc06b7187ec /debvm-create
parente31e3c7b2f78c6680bcbb7a87939d9646f3807c8 (diff)
downloaddebvm-0434e4b932a1f94725b423925d8583ba03900496.tar.gz
support ppc64el
Diffstat (limited to 'debvm-create')
-rwxr-xr-xdebvm-create9
1 files changed, 6 insertions, 3 deletions
diff --git a/debvm-create b/debvm-create
index b2a213d..8870e09 100755
--- a/debvm-create
+++ b/debvm-create
@@ -95,6 +95,9 @@ case "$ARCHITECTURE" in
i386)
KERNEL_SUFFIX=-686-pae
;;
+ ppc64el)
+ KERNEL_SUFFIX=-powerpc64le
+ ;;
esac
INCLUDE_PACKAGES="$INCLUDE_PACKAGES,linux-image$KERNEL_SUFFIX"
@@ -113,11 +116,11 @@ set -- \
# unless we set up a fstab, / will be read-only
case "$ARCHITECTURE" in
- s390x)
- DISKDEV=vda
+ amd64|i386|ppc64el)
+ DISKDEV=sda
;;
*)
- DISKDEV=sda
+ DISKDEV=vda
;;
esac
set -- "--customize-hook=echo '/dev/$DISKDEV / ext4 defaults 0 1' >"'"$1/etc/fstab"' "$@"