summaryrefslogtreecommitdiff
path: root/iso/bin/setup-chroot
blob: dc69b3c8270d08d8f1c20efdc0d1814506c8befd (plain)
    1 #!/bin/sh
    2 
    3 mount --bind /dev /mnt/dev
    4 mount --bind /tmp /mnt/tmp
    5 mount -t proc proc /mnt/proc
    6 mount -t sysfs none /mnt/sys
    7 mount -t devpts -o noexec,nosuid,gid=tty,mode=0620 devpts /mnt/dev/pts
    8 
    9 if grep -qs /sys/firmware/efi/efivars /proc/mounts; then
   10 	mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
   11 fi
   12 
   13 chroot /mnt /bin/bash

Generated by cgit