I was looking at the instructions here http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml
I wonder if these can be modified to remount an EBS volume as the root fs in an EC2 Spot Instance?
I was looking at the instructions here http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml
I wonder if these can be modified to remount an EBS volume as the root fs in an EC2 Spot Instance?
Indeed
pivot_root
can be used for this purpose but it has to be done during early initialization (e.g. inside of/sbin/init
) before other processes have started up creating a dependency on the initial root filesystem.Here are some scripts that automate the process: https://github.com/atramos/ec2-spotter