Revert "Add support for multiple partitions"
This reverts commit 0d8a64eb96
.
It doesn't work on many old distros. I should find a more compatible way
to do that.
This commit is contained in:
parent
1fffca468e
commit
87c29b3fd0
1 changed files with 4 additions and 5 deletions
9
vps2arch
9
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue