blob: 1a3b417cb858192dd62a08bde9d1a3dab42cc180 (
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: zfs import -a -R /mnt
# - with force: zfs 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
#
|