src/share/examples/rconfig/hammer.sh does not create a usable system
    Rumko 
    rumcic at gmail.com
       
    Sat Dec  6 13:19:46 PST 2008
    
    
  
With hammer.sh the way it is, when you boot the system of the hdd, it will
boot, but you wont be able to login or do anything else useful. The problem is
that /mnt/usr is another mount point and another cpdup has to be run.
Attached is the patch for this + added some cleanup (deletes /mnt/autorun* &
co.)
-- 
Regards,
Rumko
--- src/share/examples/rconfig/hammer.sh	2008-11-29 01:57:17 +0100
+++ src/share/examples/rconfig/hammer.sh	2008-12-06 15:57:09 +0100
@@ -119,6 +119,7 @@
 #
 cpdup -o / /mnt
 cpdup -o /var /mnt/var
+cpdup -o /usr /mnt/usr
 cpdup -o /dev /mnt/dev
 cpdup -i0 /etc.hdd /mnt/etc
 
@@ -213,5 +214,9 @@
     ssh-keygen -t dsa -f ssh_host_dsa_key -N ""
 endif
 
+# Misc cleanups
+rm -R /mnt/README* /mnt/autorun* /mnt/index.html /mnt/dflybsd.ico
+rm /mnt/boot.catalog
+
 # take CD out and reboot
 # 
    
    
More information about the Bugs
mailing list