~alpine/users

4 3

Disable stock networking by editing a file

Liam Proven <lproven@gmail.com>
Details
Message ID
<CAMTenCF-8ycEsqXCAPewB3VB6bFf13tHru=EZafr0BFb7bV7VQ@mail.gmail.com>
DKIM signature
missing
Download raw message
My first post _about_ Alpine _from_ Alpine.

(Not from the affected machine, obviously.)

I messed up a reinstall on one of my testbed boxes. It freezes, hard,
on the login screen.

I think it may be the situation described here:
https://bbs.archlinux.org/viewtopic.php?id=285972

I may well have installed Network Manager _before_ disabling the
standard DHCP client.

The machine has 5 OSes: XP64, OpenBSD, NetBSD, Alpine and
Crunchbang++. The boot manager is Grub provided by Crunchbang.

I can't easily boot into Alpine but I can simply mount the filesystem
and edit files.

So, I can't, for instance, do:

$ doas systemctl disable dhcpcd

How can I achieve the same result by editing a file from a different distro?

-- 
Liam Proven ~ Profile: https://about.me/liamproven
Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com
Twitter/LinkedIn: lproven ~ Skype: liamproven
IoM: (+44) 7624 227612: UK: (+44) 7939-087884
Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
Details
Message ID
<D5CMBF1QFA4W.1I4KCONC4P3YV@posteo.net>
In-Reply-To
<CAMTenCF-8ycEsqXCAPewB3VB6bFf13tHru=EZafr0BFb7bV7VQ@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
> My first post _about_ Alpine _from_ Alpine.
>
> (Not from the affected machine, obviously.)
>
> I messed up a reinstall on one of my testbed boxes. It freezes, hard,
> on the login screen.
>
> I think it may be the situation described here:
> https://bbs.archlinux.org/viewtopic.php?id=285972
>
> I may well have installed Network Manager _before_ disabling the
> standard DHCP client.
>
> The machine has 5 OSes: XP64, OpenBSD, NetBSD, Alpine and
> Crunchbang++. The boot manager is Grub provided by Crunchbang.
>
> I can't easily boot into Alpine but I can simply mount the filesystem
> and edit files.
>
> So, I can't, for instance, do:
>
> $ doas systemctl disable dhcpcd
>
> How can I achieve the same result by editing a file from a different distro?

All the enabled services are specified inside of /etc/runlevels/.

I don't know what issue you are having but disabling a service can be done
like this:

$ doas unlink etc/runlevels/default/networkmanager

And enabling like this:

$ doas ln -s /etc/init.d/networkmanager etc/runlevels/default/

('default' is the runlevel. Some services have different runlevels but I
don't think the network related services.)
Details
Message ID
<138c2430810fd5352245146c38a0e559dfb342e1.camel@riseup.net>
In-Reply-To
<D5CMBF1QFA4W.1I4KCONC4P3YV@posteo.net> (view parent)
DKIM signature
missing
Download raw message
On Sun, 2024-11-03 at 14:37 +0000, Sertonix wrote:
> On Sun, 2024-11-03 at 15:08 +0000, Liam Proven wrote:
> > $ doas systemctl disable dhcpcd

Hi Liam,

Alpine's init isn't systemd ;).

> 
> I don't know what issue you are having but disabling a service can be
> done like this:
> 
> $ doas unlink etc/runlevels/default/networkmanager

Liam inadvertently didn't kept in mind that systemd doesn't matter. Btw.
if systemd had played a role, he for example could have run systemctl
from another Linux via systemd-nspawn.

Regards,
Ralf
Liam Proven <lproven@gmail.com>
Details
Message ID
<CAMTenCHvQBQtgSzCdjRmpznM5j9RxZG7aC7otkHFHy6vVFy-BA@mail.gmail.com>
In-Reply-To
<D5CMBF1QFA4W.1I4KCONC4P3YV@posteo.net> (view parent)
DKIM signature
missing
Download raw message
On Sun, 3 Nov 2024 at 14:37, Sertonix <sertonix@posteo.net> wrote:
>
> I don't know what issue you are having but disabling a service can be done
> like this:
>
> $ doas unlink etc/runlevels/default/networkmanager
>
> And enabling like this:
>
> $ doas ln -s /etc/init.d/networkmanager etc/runlevels/default/
>
> ('default' is the runlevel. Some services have different runlevels but I
> don't think the network related services.)

Excellent -- thanks, I will try that.

-- 
Liam Proven ~ Profile: https://about.me/liamproven
Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com
Twitter/LinkedIn: lproven ~ Skype: liamproven
IoM: (+44) 7624 227612: UK: (+44) 7939-087884
Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
Liam Proven <lproven@gmail.com>
Details
Message ID
<CAMTenCEGVueR39r1X6F=akCeYwRH+ppE1F-qso6BWU9WT_KPpQ@mail.gmail.com>
In-Reply-To
<138c2430810fd5352245146c38a0e559dfb342e1.camel@riseup.net> (view parent)
DKIM signature
missing
Download raw message
On Sun, 3 Nov 2024 at 15:53, Ralf Mardorf <ralf-mardorf@riseup.net> wrote:
>
> Alpine's init isn't systemd ;).

D'oh. Of course! How very stupid of me not to notice that.

I merely picked a random example of someone with a similar problem --
and I picked very poorly. Apologies.

-- 
Liam Proven ~ Profile: https://about.me/liamproven
Email: lproven@cix.co.uk ~ gMail/gTalk/FB: lproven@gmail.com
Twitter/LinkedIn: lproven ~ Skype: liamproven
IoM: (+44) 7624 227612: UK: (+44) 7939-087884
Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053
Reply to thread Export thread (mbox)