diff --git a/Firecracker/get_rootfs.bash b/Firecracker/get_rootfs.bash index c4abbe9..b8bb602 100755 --- a/Firecracker/get_rootfs.bash +++ b/Firecracker/get_rootfs.bash @@ -52,9 +52,9 @@ wget -O "ubuntu-${ubuntu_version}.squashfs.upstream" "https://s3.amazonaws.com/s # The rootfs in our CI doesn't contain SSH keys to connect to the VM # For the purpose of this demo, let's create one and patch it in the rootfs -unsquashfs "ubuntu-${ubuntu_version}.squashfs.upstream" +sudo unsquashfs -f "ubuntu-${ubuntu_version}.squashfs.upstream" ssh-keygen -f id_rsa -N "" -cp -v id_rsa.pub squashfs-root/root/.ssh/authorized_keys +sudo cp -v id_rsa.pub squashfs-root/root/.ssh/authorized_keys mv -v id_rsa "./ubuntu-${ubuntu_version}.id_rsa" # create ext4 filesystem image sudo chown -R root:root squashfs-root