You are not logged in.

#26 2013-05-04 17:06:02

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

@hut can you double check pkgbuild sha256sum for minirc.install

The minirc.install was edited without the checksum in the PKGBUILD being updated. I submitted a pull request to fix this, but the correct hash for the file as it is written now is as follows:

acc4346dc4a9ad7cd02b87bb206d4af205291fe532c0b2a8a585e8d7b3c7a6ee

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#27 2013-05-04 17:07:19

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Thanks I made the change and have built package....


Mr Green

Offline

#28 2013-05-04 17:10:50

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

Thanks I made the change and have built package....

I do not have a computer on which I can test this at the moment, so I'll be interested to hear how it goes for you.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#29 2013-05-04 17:17:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Building an iso with it now then install and I can then test under virtualbox


Mr Green

Offline

#30 2013-05-04 17:25:20

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Be aware that the package just sets up the defaults, you will still have to setup the rc script for your daemons and modify your inittab for your system.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#31 2013-05-04 17:49:29

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 561
Website

Re: Replace systemd with busybox + minirc

Thanks a lot HalosGhost for the pkgbuild. I fixed the checksum.
Give me some time, I'll test it and add the mdev-like-a-boss stuff to it so we can use systemd as optional dependency.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#32 2013-05-04 17:51:55

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Must admit I am a little rusty when it comes to inittab, got system booting but dhcpcd is not working certainly no Xorg yet!


Mr Green

Offline

#33 2013-05-04 18:08:40

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

Must admit I am a little rusty when it comes to inittab, got system booting but dhcpcd is not working certainly no Xorg yet!

Still though! Functional boot is not a bad achievement for the basic skeleton. That's very exciting!

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#34 2013-05-04 18:20:13

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Had to add tmpfs to fstab as for some reason did not have permission to access it. I can start X now......


Mr Green

Offline

#35 2013-05-04 18:34:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Maybe a screenshot might help

http://postimg.org/image/6x63cjjz3/


Mr Green

Offline

#36 2013-05-04 18:36:09

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Victory! Congratulations!

hut wrote:

Give me some time, I'll test it and add the mdev-like-a-boss stuff to it so we can use systemd as optional dependency.

That sounds awesome, I greatly look forward to this. Fantastic work!

All the best,

-HG

Last edited by HalosGhost (2013-05-04 18:38:58)


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#37 2013-05-04 18:39:08

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Still early days yet wink

Aha I can see the problem with dhcpcd its named eth0 a quick edit should solve the problem....

Last edited by Mr Green (2013-05-04 18:40:59)


Mr Green

Offline

#38 2013-05-04 23:20:31

suare
Member
From: São Paulo, Brazil
Registered: 2013-01-17
Posts: 50

Re: Replace systemd with busybox + minirc

Very interesting project. I'm on my girlfriend's home this weekend, going to give it a try when I come back to my house smile.

Offline

#39 2013-05-04 23:29:49

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

suare wrote:

Very interesting project. I'm on my girlfriend's home this weekend, going to give it a try when I come back to my house smile.

It's already progressed a long way. I'm sorry to say that I won't have access to a computer that I can use this on for at least two more weeks, but this looks very promising so far.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#40 2013-05-05 06:56:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

This may not of much use but rc.d.patch to add a variable for wired connection. Might make it easier to configure minirc.conf (less hidden)

--- rc  2013-05-04 17:50:26.709855225 +0100
+++ rc.d  2013-05-05 07:48:52.592738829 +0100
@@ -3,6 +3,7 @@
 # define daemons
 ALL_DAEMONS="syslog-ng iptables crond dbus dhcpcd sshd alsa privoxy acpid mpd vsftpd lighttpd ntpd"
 DEFAULT_DAEMONS="$ALL_DAEMONS"
+WIRED_NETWORK="eth0"

 # /etc/minirc.conf gives you a chance to override the daemon variables
 test -f /etc/minirc.conf && source /etc/minirc.conf
@@ -65,7 +66,7 @@
     privoxy)
         /usr/sbin/privoxy --user privoxy.privoxy /etc/privoxy/config;;
     dhcpcd)
-        /usr/sbin/dhcpcd -qb eth0;;
+        /usr/sbin/dhcpcd -qb $WIRED_NETWORK;;
     vsftpd)
         /usr/sbin/vsftpd &;;
     lighttpd)

Mr Green

Offline

#41 2013-05-05 16:11:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Just updated minirc package and system would not boot, took me a while to figure out to switch UDEV to 'systemd' as 'busybox' did not create devices in /dev correctly.


Mr Green

Offline

#42 2013-05-05 16:23:03

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

The logic for `busybox mdev` to have it setup /dev correctly is in-progress. But, at the moment, using ``systemd`` is still recommended.

All the best,

-HG

P.S., I just filed a fairly heavy pull request upstream, and if it is accepted, you will certainly need to redo some of your configuration (I won't update the PKGBUILD for the new logic in the pull request unless/until it is accepted upstream). This is just a heads up.


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#43 2013-05-05 16:36:47

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

I should have read README before updating so my fault!!! It would have far better to run with 'systemd' and give option of busybox (commented out). Testing on a virtual machine at the moment so do not mind messing it up. Also noticed rc.d is now rc which makes sense.


Mr Green

Offline

#44 2013-05-05 16:42:34

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

I should have read README before updating so my fault!!! It would have far better to run with 'systemd' and give option of busybox (commented out). Testing on a virtual machine at the moment so do not mind messing it up. Also noticed rc.d is now rc which makes sense.

Perhaps it's just my own force of habit, but I'm used to either using `systemctl` or `rc.d`, but hut wanted it to remain `rc` not `rc.d`so I reverted it. I wonder if he would be more amenable to `service`, as that still makes sense and was still a common way of doing things a while back. hut, thoughts?

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#45 2013-05-05 16:59:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

service files are systemd (think ubuntu uses the term too) thinking more rc scripts or even minirc scripts smile they have to stand out and then people will not get confused


Mr Green

Offline

#46 2013-05-05 17:05:45

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

service files are systemd (think ubuntu uses the term too) thinking more rc scripts or even minirc scripts smile they have to stand out and then people will not get confused

But `script`, though accurate, gives the wrong impression, I think. And, I mean `service` as the command, what `rc` would be renamed. Yes, .service files are a systemd thing, but using `service` as the command to {{,re}start,stop} daemons existed during the SysVinit days.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#47 2013-05-05 22:07:05

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 561
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

This may not of much use but rc.d.patch to add a variable for wired connection. Might make it easier to configure minirc.conf (less hidden)
[...]

I applied the patch, thank you

Mr Green wrote:

Just updated minirc package and system would not boot, took me a while to figure out to switch UDEV to 'systemd' as 'busybox' did not create devices in /dev correctly.

Yeah, things will be a little volatile until we settle on the file names and default settings, sorry about that. I recommend to skim through the readme or the git diffs before each upgrade.


HalosGhost wrote:
Mr Green wrote:

service files are systemd (think ubuntu uses the term too) thinking more rc scripts or even minirc scripts smile they have to stand out and then people will not get confused

But `script`, though accurate, gives the wrong impression, I think. And, I mean `service` as the command, what `rc` would be renamed. Yes, .service files are a systemd thing, but using `service` as the command to {{,re}start,stop} daemons existed during the SysVinit days.

All the best,

-HG

I renamed it to "rc" because it's very short. "rc.d" would be confused with the old rc.d from sysvinit. The most sane option looks to me like renaming /sbin/rc to /sbin/minirc to remove all ambiguity. Is that okay with everyone?


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#48 2013-05-05 23:28:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Replace systemd with busybox + minirc

Renaming 'rc' tp 'minirc' makes perfect sense to me.

EDIT: syslog did not work for me until I changed path in syslog-ng.conf

Last edited by Mr Green (2013-05-06 00:08:16)


Mr Green

Offline

#49 2013-05-06 00:20:00

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 561
Website

Re: Replace systemd with busybox + minirc

Mr Green wrote:

Renaming 'rc' tp 'minirc' makes perfect sense to me.

EDIT: syslog did not work for me until I changed path in syslog-ng.conf

I'll add it to the FAQ.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#50 2013-05-06 00:24:51

progandy
Member
Registered: 2012-05-17
Posts: 2,151

Re: Replace systemd with busybox + minirc

Mr Green wrote:

Renaming 'rc' tp 'minirc' makes perfect sense to me.

If you want it short, what about mrc?

Offline

Board footer

Powered by FluxBB