fuel-library/deployment/puppet/cobbler/templates/snippets/post_part_compute.erb
Vladimir Kozhukalov eac8da975f Initial commit
2012-09-21 14:24:04 +04:00

10 lines
298 B
Plaintext

/sbin/sfdisk -l;
dd if=/dev/zero of=/dev/sdb bs=512 count=1;
echo ";" | /sbin/sfdisk /dev/sdb;
sfdisk -R /dev/sdb;
sleep 10;
mkfs.ext4 /dev/sdb1;
sdb1_uuid=$(blkid -ovalue /dev/sdb1 | head -1);
echo "UUID=$sdb1_uuid /instances ext4 defaults,noatime,nodiratime 0 0" >> /etc/fstab;
mkdir /instances;