From 87c29b3fd0810f6aed62b65f45f19abb0d646e9f Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Sat, 25 Jul 2015 16:47:19 +0200 Subject: [PATCH] Revert "Add support for multiple partitions" This reverts commit 0d8a64eb96ba3c971c292c1bfb14d8a2f38f596a. It doesn't work on many old distros. I should find a more compatible way to do that. --- vps2arch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vps2arch b/vps2arch index 0333312..2c257cc 100755 --- a/vps2arch +++ b/vps2arch @@ -39,7 +39,7 @@ download() { } download_and_extract_bootstrap() { - local sha1 filename target + local sha1 filename download iso/latest/sha1sums.txt | fgrep "$cpu_type.tar.gz" > "sha1sums.txt" read -r sha1 filename < "sha1sums.txt" download "iso/latest/$filename" > "$filename" @@ -57,10 +57,9 @@ download_and_extract_bootstrap() { mount -t tmpfs -o mode=1777,nosuid,nodev shm "/root.$cpu_type/dev/shm" mount -t tmpfs -o nosuid,nodev,mode=0755 run "/root.$cpu_type/run" mount -t tmpfs -o mode=1777,strictatime,nodev,nosuid tmp "/root.$cpu_type/tmp" - - findmnt -nlo TARGET -t btrfs,ext2,ext3,ext4,f2fs,jfs,nilfs2,reiser4,reiserfs,vfat,xfs,zfs | sort -u | while read -r target; do - mount --bind "$target" "/root.$cpu_type/mnt$target" - done + # FIXME support multiple partitions + mount --bind / "/root.$cpu_type/mnt" + findmnt /boot >/dev/null && mount --bind /boot "/root.$cpu_type/mnt/boot" # Workaround for Debian mkdir -p "/root.$cpu_type/run/shm" # Workaround for OpenVZ