Changeset 592

Show
Ignore:
Timestamp:
03/29/07 14:47:24 (2 years ago)
Author:
sacha
Message:

change of sequence in creation chroot action
copy hosts file as well

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/applications/nightly_build_test_infrastructure/chroot.rb

    r591 r592  
    6565    run "#{@sudo}cp /etc/fstab /root/fstab.orig" 
    6666    run "#{@sudo}echo \"/proc #{@complete_path}/proc proc defaults 0 0\" >> /etc/fstab" 
    67     run "#{@sudo}echo \"/dev #{@complete_path}/dev dev defaults 0 0\" >> /etc/fstab" 
     67    run "#{@sudo}mount #{@complete_path}/proc" 
     68    run "#{@sudo}cp /etc/hosts #{@complete_path}/etc/hosts" 
     69    run "#{@sudo}mount /dev #{@complete_path}/dev -o bind" 
    6870    run "#{@sudo}echo \"cd /dev; /sbin/MAKEDEV generic; cd -\" >> /#{@complete_path}/root/dev_create" 
    6971    run "#{@sudo]chroot #{@complete_path} sh root/dev_create" 
    70     run "#{@sudo}mount #{@complete_path}/proc" 
    71     run "#{@sudo}mount /dev #{@complete_path}/dev -o bind" 
    7272 
    7373    return @complete_path