【Linux】chroot與移植


最近有同事把我們build code的環境由redhat移植到ubuntu。老實說以前我都覺得要重作corss-compiler才能重建build code環境。沒想到直接用ubuntu開機,mount全部的東西,tar起來後。用chroot也能達到類似的功能。

  1. boot into ubuntu
  2. mount vm partitions from vm
  3. tar all files/folder under root(/) directory
  4. umount vm partition from vm
  5. untar
  6. chroot /folder-name
【參考】
 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com