It's a hack at best.
Signed-off-by: Loic Dachary <loic@dachary.org>
runcmd:
- mkinitrd --force /boot/initramfs-2.6.32-504.1.3.el6.x86_64.img 2.6.32-504.1.3.el6.x86_64
- reboot
-#runcmd:
-# # if /mnt is on ephemeral, that moves /home/{username} on the ephemeral, otherwise it does nothing
-# - rsync -a --numeric-ids /home/{username}/ /mnt/ && rm -fr /home/{username} && ln -s /mnt /home/{username}
final_message: "{up}, after $UPTIME seconds"
- git
- ntp
- redhat-lsb-core
-# this does not work on centos, ssh key will not be working, maybe because there is a symlink to reach it ?
-#runcmd:
-# # if /mnt is on ephemeral, that moves /home/{username} on the ephemeral, otherwise it does nothing
-# - rsync -a --numeric-ids /home/{username}/ /mnt/ && rm -fr /home/{username} && ln -s /mnt /home/{username}
final_message: "{up}, after $UPTIME seconds"
- wget
- git
- ntp
-runcmd:
- # if /mnt is on ephemeral, that moves /home/{username} on the ephemeral, otherwise it does nothing
- - rsync -a --numeric-ids /home/{username}/ /mnt/ && rm -fr /home/{username} && ln -s /mnt /home/{username}
final_message: "{up}, after $UPTIME seconds"