Update Using the Recovery MFS authored by David Johnson's avatar David Johnson
...@@ -204,6 +204,9 @@ mount -o bind /dev/pts /mnt/dev/pts ...@@ -204,6 +204,9 @@ mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /sys /mnt/sys mount -o bind /sys /mnt/sys
# If you need internet access and name resolution: # If you need internet access and name resolution:
mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf
# Or, if the above command fails because /mnt/etc/resolv.conf
# is a symlink to the systemd stub resolver, try
mount -o bind /etc/resolv.conf /mnt/run/systemd/resolve/stub-resolv.conf
# Change your root to be the root of the on-disk filesystem: # Change your root to be the root of the on-disk filesystem:
chroot /mnt /bin/bash chroot /mnt /bin/bash
# Run whatever programs you need, such as apt-get or grub-install. # Run whatever programs you need, such as apt-get or grub-install.
... ...
......