11 lines
398 B
Bash
11 lines
398 B
Bash
#!/bin/sh
|
|
|
|
echo "Creating test file"
|
|
touch /home/test_file
|
|
|
|
echo "Creating volume mount script on instance"
|
|
echo -e '#!/bin/sh\nsudo /usr/sbin/mkfs.ext4 /dev/vdb | logger -t mount_volume.sh\nsudo mount -t ext4 /dev/vdb /mnt | logger -t mount_volume.sh\nmount | grep /mnt | logger -t mount_volume.sh' | tee /home/mount_volume.sh
|
|
chmod 777 /home/mount_volume.sh
|
|
|
|
echo -e "test\ntest" | passwd cirros
|