@@ -30,20 +30,6 @@ our $domid;
our $gn = $gho->{Guest};
-sub arrangepreserve () {
- target_editfile_root($ho,$r{"$gho->{Guest}_cfgpath"}, sub {
- while (<EI>) {
- if (m/^\s*on_poweroff\s*=/) {
- target_editfile_cancel("already configured to preserve")
- if m/\bpreserve\b/;
- next;
- }
- print EO or die $!;
- }
- print EO "\n","on_poweroff='preserve'\n" or die $!;
- });
-}
-
sub start () {
rumprun_guest_create($gho);
@@ -118,7 +104,6 @@ sub check_output () {
}
}
-arrangepreserve();
start();
await_end();
check_output();
There is no config file any more, so this function now crashes due to passing undef to target_editfile_root. We do not need to edit it to set on_poweroff to preserve because this is the default for rumprun. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> --- ts-rumprun-demo-xenstorels | 15 --------------- 1 file changed, 15 deletions(-)