Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mn_copy_image complains it can't write host key while disks need to be read-only #120

Closed
nettings opened this issue Jun 3, 2023 · 1 comment
Labels
bootstrap Bugs in the continuous integration bootstrapping process

Comments

@nettings
Copy link
Owner

nettings commented Jun 3, 2023

medianet@mn-basic:/medianet/sbin/50-run_on_pi $ sudo ../mn_copy_image -u medianet -t /local/images -H mn-tarot

Copying image from running system to medianet@mn-tarot:/local/images/2023-06-03-medianet-aarch64-pi4.img.
Checking if boot partition is mounted read-only... succeeded.
Checking if root partition is mounted read-only... succeeded.
Determining used space (= end of third partition) on /dev/mmcblk0... 6442450943 bytes (12288 blocks of 524288 bytes)
Transferring data to medianet@mn-tarot:/local/images/2023-06-03-medianet-aarch64-pi4.img...
The authenticity of host 'mn-tarot (2a02:a463:7bec:1:9b1f:e252:363:172d)' can't be established.
ECDSA key fingerprint is SHA256:G4zz/n67fL8KwKQDSyFrY/UYvCmLZl8rYR/7Uif1A18.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Could not create directory '/root/.ssh' (Read-only file system).
Failed to add the host to the list of known hosts (/root/.ssh/known_hosts).

We should suppress that error message, since the disks need to be read-only at this point to guarantee an uncorrupted image.

@nettings nettings added the bootstrap Bugs in the continuous integration bootstrapping process label Jun 3, 2023
@nettings
Copy link
Owner Author

nettings commented Jun 3, 2023

A common workaround seems to be -oUserKnownHostsFile=/dev/null, while -o StrictHostKeyChecking=no is also set.

nettings added a commit that referenced this issue Nov 28, 2023
@nettings nettings closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bootstrap Bugs in the continuous integration bootstrapping process
Projects
None yet
Development

No branches or pull requests

1 participant