Skip to content

Commit 9373531

Browse files
committed
Suppress error output about failure to preserve permissions across filesystems
1 parent a32e1f2 commit 9373531

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

turtlebot4_setup/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ def write_system(self):
234234
# update /boot/firmware/user-data with the new hostname
235235
subprocess.run(shlex.split(f'cp {self.fw_user_data_file} /tmp/user-data'))
236236
subprocess.run(shlex.split(f'sed -i -E "s/^hostname:.+/hostname: {self.get(SystemOptions.HOSTNAME)}/" /tmp/user-data')) # noqa: E501
237-
subprocess.run(shlex.split(f'sudo mv /tmp/user-data {self.fw_user_data_file}'))
237+
subprocess.run(
238+
shlex.split(f'sudo mv /tmp/user-data {self.fw_user_data_file}'),
239+
stdout=subprocess.DEVNULL,
240+
stderr=subprocess.DEVNULL,
241+
)
238242

239243
def read_wifi(self):
240244
try:

0 commit comments

Comments
 (0)