blob: cd700a7fc0629f8cc1f38b9d885ab5c7e1306163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#! /bin/sh
#
#
# Perform zfs auto import w/ temp root on /mnt
#
# - without force: zpool import -a -R /mnt
# - with force: zpool import -a -f -R /mnt
#
# bind the special devices and pipes to zfs realm
#
mount --bind /dev/ /mnt/dev/
mount --bind /sys/ /mnt/sys/
mount --bind /proc/ /mnt/proc/
# chroot into it
#
# chroot /mnt
#
# Potentially you might need to
#
# - update-initramfs -u -k all
# - update-grub
# - grub-install /dev/disk/by-id/your_boot_root_device
#
|