mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
[PR #609] [CLOSED] Ensure files are written to disk before symlink #869
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/609
Author: @frankvanbever
Created: 11/30/2018
Status: ❌ Closed
Base:
master← Head:bug-sync-issue📝 Commits (1)
2675684Add hook to allow sync before symlinking files📊 Changes
2 files changed (+27 additions, -1 deletions)
View changed files
📝
dehydrated(+3 -0)📝
docs/examples/hook.sh(+24 -1)📄 Description
We encountered an issue on a device using UBIFS where if a power cycle
happens close enough after invoking dehydrated only the metadata would
have been written and the symlink points to an empty file e.g.
-rw------- 1 root root 0 Nov 30 13:20 chain-1543580304.pem
lrwxrwxrwx 1 root root 20 Nov 30 13:20 chain.pem -> chain-1543580304.pem
-rw------- 1 root root 0 Nov 30 13:20 fullchain-1543580304.pem
lrwxrwxrwx 1 root root 24 Nov 30 13:20 fullchain.pem -> fullchain-1543580304.pem
Forcing a sync of the symlinked files prevents this from occurring.
Signed-off-by: Frank Vanbever frank.vanbever@essensium.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.