From 883ac71cf55c133cad629d76ee58196e53ee3aad Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 30 Jan 2014 18:41:47 -0800 Subject: [PATCH] Mount ext3 filesystems as ext4 on single use slaves It has been suggested that tests may be happier with ext4 instead of ext3 on the test slaves. At the end of building an image for single use slaves modify fstab so that when slaves are booted with the image they mount / as ext4. Related-Bug: 1273386 Change-Id: I88409e734b1599a5517abfd9d76c7fd622c01bb5 --- .../openstack_project/files/nodepool/scripts/prepare_node.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/openstack_project/files/nodepool/scripts/prepare_node.sh b/modules/openstack_project/files/nodepool/scripts/prepare_node.sh index 9e092acfbb..362e9073c5 100755 --- a/modules/openstack_project/files/nodepool/scripts/prepare_node.sh +++ b/modules/openstack_project/files/nodepool/scripts/prepare_node.sh @@ -39,5 +39,9 @@ fi sudo mkdir -p /opt/git sudo -i python /opt/nodepool-scripts/cache_git_repos.py +# We don't always get ext4 from our clouds, mount ext3 as ext4 on the next +# boot (eg when this image is used for testing). +sudo sed -i 's/ext3/ext4/g' /etc/fstab + sync sleep 5