Changes between Version 2 and Version 3 of debirf-boot-on-kvm-guest


Ignore:
Timestamp:
Feb 9, 2012, 5:23:57 PM (12 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • debirf-boot-on-kvm-guest

    v2 v3  
    4949}}}
    5050
    51 == chroot ==
    52 
    53 If you want to operate in a chroot environment, you might try something like this:
    54 
    55  * Mount the main partition:
     51For example:
     52 
    5653{{{
    5754mount /dev/mapper/vg_leslie0-root /mnt
     
    6057mount /dev/mapper/vg_leslie0-srv /mnt/srv
    6158}}}
    62  * Mount special filesystems
     59
     60== chroot ==
     61
     62If you want to operate in a chroot environment, you will also need to mount some special filesystems:
     63
    6364{{{
    64 for fs in dev proc sys; do mount -o bind /dev/$fs /mnt/$fs; done
     65for fs in dev proc sys; do mount -o bind /$fs /mnt/$fs; done
    6566}}}
     67
     68Then:
     69{{{
     70chroot /mnt
     71}}}