From 7819461b077953542c09436110c7f6540271e82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 26 Apr 2026 00:00:09 +0200 Subject: [PATCH] Fix permissions for unsquashfs and authorized_keys in get_rootfs.bash --- Firecracker/get_rootfs.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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