Skip to content

Commit

Permalink
Merge pull request coreos#134 from jlebon/pr/mount-ro
Browse files Browse the repository at this point in the history
30ignition/ignition-setup-user: mount /boot partition ro
  • Loading branch information
cgwalters authored Nov 7, 2019
2 parents 38af701 + e96e7fc commit d9e8a63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dracut/30ignition/ignition-setup-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ else
# with MountFlags=slave so it is unmounted for us.
bootmnt=/mnt/boot_partition
mkdir -p $bootmnt
mount /dev/disk/by-label/boot $bootmnt
# mount as read-only since we don't strictly need write access and we may be
# running alongside other code that also has it mounted ro
mount -o ro /dev/disk/by-label/boot $bootmnt
copy_file_if_exists "${bootmnt}/ignition/config.ign" "${destination}/user.ign"
fi

0 comments on commit d9e8a63

Please sign in to comment.