]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - scripts/ovh_cloud_instance/arch_host_script.sh
Move todos to readme.md and add first documentation
[perso/Immae/Projets/Puppet.git] / scripts / ovh_cloud_instance / arch_host_script.sh
index c188514035d6ab8402981eaa16ef56d48d880f8d..378b0bef92189092b3a9c5ab9344a15d9d08f93d 100755 (executable)
@@ -25,18 +25,18 @@ PART="/dev/disk/by-uuid/$UUID"
 # mkfs.ext4 -F -U "$UUID" "$DEVICE"
 sudo mount "$DEVICE" /mnt
 
-##### FIXME: mkfs.ext4 would be better ####
+##### mkfs.ext4 would be better ####
 for i in /mnt/*; do
   if [ "$i" = "/mnt/boot" ]; then
     # keep /boot/grub
-    sudo rm -f $i/*
+    sudo rm -f $i/* || true
   else
     sudo rm -rf $i
   fi
 done
-##### /FIXME ####
+##### / ####
 
-sudo pacstrap /mnt base git puppet
+sudo pacstrap -G /mnt base git puppet
 
 echo "$PART / auto defaults 0 1" | sudo tee /mnt/etc/fstab
 # /Install very basic system