• Re: Re: Re: Re: Re: Re: Issue with preseeded install - cannot skip apt

    From Jerzy Patraszewski@21:1/5 to All on Mon Oct 31 19:10:01 2022
    Ok,
    so I found a workaround for this issue, directly in the preseed.cfg file. I don't like it, but it works. I hope it will help someone but also I hope it will be taken forward by @philh or other d-i/apt-setup folks...

    in preseed.cfg:

    <snip>
    d-i preseed/early_command string \
    sed -i '3i if [ db_get apt-setup/use_mirror=true && db_get apt-setup/no_mirror=false && db_get netcfg/dhcp_options != "db_get netcfg/dhcp_options"]; \
    exit 0; fi' /usr/lib/apt-setup/generators/40cdrom || true

    <snip>

    Cheers,
    Jerzy

    <div dir="ltr">Ok,<div>so I found a workaround for this issue, directly in the preseed.cfg file. I don&#39;t like it, but it works. I hope it will help someone but also I hope it will be taken forward by <span style="background-color:rgb(250,250,250);
    color:rgb(48,48,48);font-family:-apple-system,&quot;system-ui&quot;,&quot;Segoe UI&quot;,Roboto,&quot;Noto Sans&quot;,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&
    quot;,&quot;Noto Color Emoji&quot;;font-size:14px;text-align:center">@philh or other d-i/apt-setup folks...</span></div><div><span style="background-color:rgb(250,250,250);color:rgb(48,48,48);font-family:-apple-system,&quot;system-ui&quot;,&quot;Segoe UI&
    quot;,Roboto,&quot;Noto Sans&quot;,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:14px;text-align:center"><br></span></div>
    <div><span style="background-color:rgb(250,250,250);color:rgb(48,48,48);font-family:-apple-system,&quot;system-ui&quot;,&quot;Segoe UI&quot;,Roboto,&quot;Noto Sans&quot;,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-serif,&quot;Apple Color Emoji&quot;,
    &quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:14px;text-align:center">in preseed.cfg:</span></div><div><span style="background-color:rgb(250,250,250);color:rgb(48,48,48);font-family:-apple-system,&quot;
    system-ui&quot;,&quot;Segoe UI&quot;,Roboto,&quot;Noto Sans&quot;,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:14px;text-
    align:center"><br></span></div><div><span style="background-color:rgb(250,250,250);color:rgb(48,48,48);font-family:-apple-system,&quot;system-ui&quot;,&quot;Segoe UI&quot;,Roboto,&quot;Noto Sans&quot;,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-
    serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:14px;text-align:center">&lt;snip&gt;</span></div><div>d-i preseed/early_command string \<br>        sed -i &#39;3i if [
    db_get apt-setup/use_mirror=true &amp;&amp; db_get apt-setup/no_mirror=false &amp;&amp; db_get netcfg/dhcp_options != &quot;db_get netcfg/dhcp_options&quot;]; \<br>        exit 0; fi&#39; /usr/lib/apt-setup/generators/40cdrom || true<br></div><div><
    </div><div>&lt;snip&gt;</div><div><br></div><div>Cheers,</div><div>Jerzy</div><div><br></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)