Skip to content

Commit

Permalink
35coreos-ignition: use cp instead of mv
Browse files Browse the repository at this point in the history
We can't `mv` out of the module directory since `/usr` is mounted
read-only in the dracut container when rpm-ostree runs it.

Follow up to coreos#938.

Reported-by: Luca BRUNO <luca.bruno@coreos.com>
  • Loading branch information
jlebon committed Jun 28, 2021
1 parent 9e6e621 commit ca72ec7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install() {
# dracut inst_script doesn't allow overwrites and we are replacing
# the default script placed by Ignition
binpath="/usr/sbin/ignition-kargs-helper"
mv "$moddir/coreos-kargs.sh" "$initdir$binpath"
cp "$moddir/coreos-kargs.sh" "$initdir$binpath"
install_ignition_unit coreos-kargs-reboot.service

inst_script "$moddir/coreos-boot-edit.sh" \
Expand Down

0 comments on commit ca72ec7

Please sign in to comment.