rconfig - A couple additions to hammer.sh
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 21 Jan 2015 22:42:41 +0000 (23:42 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 21 Jan 2015 22:42:41 +0000 (23:42 +0100)
Submitted-by: Rumko
Closes: #1173

share/examples/rconfig/hammer.sh

index 964975a..271d6e1 100644 (file)
@@ -66,7 +66,7 @@ disklabel64 -R ${disk}s1 /tmp/label
 
 # Create file systems
 newfs /dev/${disk}s1a
-newfs_hammer -L ROOT /dev/${disk}s1d
+newfs_hammer -f -L ROOT /dev/${disk}s1d
 
 # Mount it
 #
@@ -204,5 +204,10 @@ if ( ! -f /mnt/etc/ssh/ssh_host_dsa_key ) then
     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
 #