Comment 8 for bug 1743643

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1743643] Re: Install to dirty disk with swap fails

On Wed, Jan 17, 2018 at 8:07 AM, Ryan Harper <email address hidden>
wrote:

>
>
> On Tue, Jan 16, 2018 at 5:51 PM, Michael Hudson-Doyle <
> <email address hidden>> wrote:
>
>> Ah haha what fun. Do you know which component is responsible for looking
>> for swap partitions and mounting them?
>>
>
> the journal logs point to kernel; But I would generally suspect systemd
> instead.
>
> I can't find this generator but I believe it's gpt-auto-generator which
> looks at GPT
> partitions and can add a swap that's found but not in /etc/fstab
>

Digging deeper into the livecd: casper removes/purges the
systemd-gpt-auto-generator which normally would
create a swap unit for gpt partitions marked as swap; however, there is
also another nice casper script
13swap which checks partitions for SWAPMAGIC value, and if so, calls
'swapon' $device.

I think casper scripts are part of the livecd-rootfs package, so we can
target that package as well to see
if there is a way disable the swapon bits.

I'm still working on curtin to have it remove target devices from swap if
they're added, however I do think it
would be best to not swap on target devices in the installer env.

>
> https://github.com/systemd/systemd/issues/6192
> https://bugs.freedesktop.org/show_bug.cgi?id=87230
> https://www.reddit.com/r/archlinux/comments/5w1wkt/
> help_disabling_second_swap_partition_automounting/
>
>
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1743643
>>
>> Title:
>> Install to dirty disk with swap fails
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/curtin/+bug/1743643/+subscriptions
>>
>
>