Skip to content

Commit

Permalink
Merge pull request #2238 from OSInside/use_sync_defaults_for_in_custo…
Browse files Browse the repository at this point in the history
…m_initrd_builds

Use rsync defaults to sync the initrd root-tree
  • Loading branch information
schaefi committed Jan 20, 2023
2 parents 2c2ab77 + ab4abf9 commit e8af0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kiwi/boot/image/builtin_kiwi.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def create_initrd(
temp_boot_root_directory
)
data.sync_data(
options=['-a']
options=Defaults.get_sync_options()
)
boot_directory = temp_boot_root_directory + '/boot'
Path.wipe(boot_directory)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/boot/image/builtin_kiwi_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_create_initrd(
mock_os_chmod.assert_called_once_with(
'temp-boot-directory', 0o755
)
data.sync_data.assert_called_once_with(options=['-a'])
data.sync_data.assert_called_once_with(options=['--archive', '--hard-links', '--xattrs', '--acls', '--one-file-system', '--inplace'])
mock_cpio.assert_called_once_with(
''.join(
[
Expand Down

0 comments on commit e8af0b5

Please sign in to comment.