From 24ad4fd4f4119781b39eace0d0be78250f7de530 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 18 Mar 2023 22:44:03 +0100 Subject: [PATCH] Fix outputting too many sh < + the end-root has not been called, except if the preceding "screen" + tag is itself preceded by a containing and to + bootscripts. So close it only if needed --> + test="preceding-sibling::screen[1][@role='root'] and + @role='root' and + not(preceding-sibling::screen[1]/preceding-sibling::para[1]/xref[@linkend='bootscripts'])"> @@ -733,17 +737,21 @@ cd $BOOTUNPACKDIR select="id('bootscripts')//itemizedlist//ulink/@url"/> + the begin-root will not be called. So do it.--> + test="preceding-sibling::screen[1][@role='root'] and + @role='root'"> + the end-root has not been called. So do it, except if it was already a + unit install --> + test="preceding-sibling::screen[1][@role='root'] and + @role='root' and + not(preceding-sibling::screen[1]/preceding-sibling::para[1]/xref[@linkend='systemd-units'])"> @@ -752,9 +760,10 @@ cd $BOOTUNPACKDIR select="id('systemd-units')//itemizedlist//ulink/@url"/> + the begin-root will not be called. So do it. --> + test="preceding-sibling::screen[1][@role='root'] and + @role='root'"> @@ -762,7 +771,7 @@ cd $BOOTUNPACKDIR + the end-root has not been called. --> @@ -770,9 +779,12 @@ cd $BOOTUNPACKDIR popd + the begin-root will not be called. So do it, except if the next + is itself a unit or bootscript install --> + test="following-sibling::screen[1][@role='root'] and + @role='root' and + not(following-sibling::screen[1]/preceding-sibling::para[1]/xref[@linkend='bootscripts' or @linkend='systemd-units'])">