File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2533,16 +2533,17 @@ def kernelopts_common(self):
25332533 """
25342534 if not self .kernel :
25352535 return ""
2536+ base_kernelopts = "systemd.machine_id=" + self .uuid .hex + " "
25362537 kernels_dir = self .storage .kernels_dir
25372538
25382539 kernelopts_path = os .path .join (
25392540 kernels_dir , "default-kernelopts-common.txt"
25402541 )
25412542 if os .path .exists (kernelopts_path ):
25422543 with open (kernelopts_path , encoding = "ascii" ) as f_kernelopts :
2543- return f_kernelopts .read ().rstrip ("\n \r " )
2544+ return base_kernelopts + f_kernelopts .read ().rstrip ("\n \r " )
25442545 else :
2545- return qubes .config .defaults ["kernelopts_common" ]
2546+ return base_kernelopts + qubes .config .defaults ["kernelopts_common" ]
25462547
25472548 #
25482549 # helper methods
You can’t perform that action at this time.
0 commit comments