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.
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 gpt-auto- generator which normally would
systemd-
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.
> /github. com/systemd/ systemd/ issues/ 6192 /bugs.freedeskt op.org/ show_bug. cgi?id= 87230 /www.reddit. com/r/archlinux /comments/ 5w1wkt/ second_ swap_partition_ automounting/ /bugs.launchpad .net/bugs/ 1743643 /bugs.launchpad .net/curtin/ +bug/1743643/ +subscriptions
> https:/
> https:/
> https:/
> help_disabling_
>
>
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https:/
>>
>> Title:
>> Install to dirty disk with swap fails
>>
>> To manage notifications about this bug go to:
>> https:/
>>
>
>