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