You are not logged in.
Hi, i just converted my arch to OpenRC successfully, for some reasons i need SysVinit since quiet boot argument don't work on openrc's default init. I referred to arch's wiki for sysVinit(AUR) but when i makepkg -si pacman gives me this error:
[qasim@qasim sysvinit]$ sudo pacman -U sysvinit-3.06-1-x86_64.pkg.tar.zst
[sudo] password for qasim:
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) sysvinit-3.06-1
Total Installed Size: 0.26 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [####################################] 100%
(1/1) checking package integrity [####################################] 100%
(1/1) loading package files [####################################] 100%
(1/1) checking for file conflicts [####################################] 100%
error: failed to commit transaction (conflicting files)
sysvinit: /bin exists in filesystem (owned by filesystem)
sysvinit: /sbin exists in filesystem (owned by filesystem)
sysvinit: /sbin/poweroff exists in filesystem
sysvinit: /sbin/reboot exists in filesystem
sysvinit: /usr/bin/halt exists in filesystem (owned by openrc)
sysvinit: /usr/bin/init exists in filesystem (owned by base)
sysvinit: /usr/bin/shutdown exists in filesystem (owned by openrc)
Errors occurred, no packages were upgraded.
Kindly help me out on how can change openrc-init to SysVinit(init-openrc)
Offline
Please edit your post to make use of code tags.
https://wiki.archlinux.org/title/Genera … s_and_code
Mod note: moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Try applying the diff below
diff --git a/PKGBUILD b/PKGBUILD
index 71f47f6..e5c712b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ source=($url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}
$pkgname-makefile.patch)
b2sums=('7fd2ba4bc0c8a15ddd7af2aaa1044e3bc8885a5e18a0a9c58c63897d0965d7430a9b529af4953618a9042cf13cca8a74a92ab02062c5de18d13fdf68328c11e7'
'SKIP'
- '8877b4523b2aeb75e602e4ef53007e9258a76a1a981e620ea3c6e275a97257f9efb060f102ea95a914c3729bd26fcc360b5613276641b61d452417bff2fa6878')
+ '8819c7626b608871793f30c91994fef6f64e6ee74ce3badeaa3acee8f656a64b3ffe67b08bca124203a7e979f092950b38267b68be17374311cd5cb95875e25c')
validpgpkeys=(
'5A2DC686CDC5D6087D88C198351F75FA45D53656' # sysvinit-verification-key-2.pub
'C1A4432D88896729E4300B04AFD1B98BF3273812' # sysvinit-verification-key-3.pub
@@ -25,20 +25,7 @@ validpgpkeys=(
prepare() {
cd $pkgname-$pkgver
- # Patch for Arch's Linux filesystem hierarchy
- if [ "$(grep 'execv("/sbin/mount", args);' < src/killall5.c | wc -l)" = 1 ]; then
- sed -i 's|execv("/bin/mount", args);||' src/killall5.c
- fi
- sed -i 's|/bin:/sbin:/usr/bin:/usr/sbin|/usr/bin|' src/init.h src/shutdown.c
- sed -i 's|/sbin:/usr/sbin:/bin:/usr/bin|/usr/bin|' src/init.h src/shutdown.c
- sed -i 's|/bin:/usr/bin:/sbin:/usr/sbin|/usr/bin|' src/init.h src/shutdown.c
- sed -i 's|/sbin/|/bin/|g;s|/bin/|/usr/bin/|g;s|/usr/usr/|/usr/|g' \
- contrib/notify-pam-dead.patch man/*.{1,5,8} src/*.{c,h}
-
- # last, lastb, mesg are part of util-linux
- # pidof is part of procps-ng
- # logsave is part of e2fsprogs
- patch -Np0 -F0 < ../$pkgname-makefile.patch
+ patch -Np1 < ../$pkgname-makefile.patch
}
build() {
diff --git a/sysvinit-makefile.patch b/sysvinit-makefile.patch
index 19eaf0a..7863764 100644
--- a/sysvinit-makefile.patch
+++ b/sysvinit-makefile.patch
@@ -1,6 +1,8 @@
---- src/Makefile 2022-12-16 12:07:55.000000000 -0500
-+++ src/Makefile 2023-01-17 05:21:41.801595847 -0500
-@@ -23,13 +23,13 @@
+diff --git a/src/Makefile b/src/Makefile
+index 21cbb2e..8939fca 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -23,13 +23,13 @@ MNTPOINT=
# For some known distributions we do not build all programs, otherwise we do.
BIN =
@@ -15,14 +17,25 @@
-MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
-MAN8 += shutdown.8 telinit.8 fstab-decode.8 logsave.8
+MAN8 = halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8
-+MAN8 += shutdown.8 telinit.8 fstab-decode.8
++MAN8 += shutdown.8 telinit.8 fstab-decode.8
ifeq ($(DISTRO),)
SBIN += sulogin bootlogd
-@@ -213,10 +213,6 @@
- ln -sf halt $(ROOT)/sbin/reboot
- ln -sf halt $(ROOT)/sbin/poweroff
- ln -sf init $(ROOT)/sbin/telinit
+@@ -196,7 +196,6 @@ clobber: cleanobjs
+ distclean: clobber
+
+ install: all
+- $(INSTALL_DIR) $(ROOT)/bin/ $(ROOT)/sbin/
+ $(INSTALL_DIR) $(ROOT)/usr/bin/
+ for i in $(BIN); do \
+ $(INSTALL_EXEC) $$i $(ROOT)/bin/ ; \
+@@ -210,13 +209,6 @@ install: all
+ # $(INSTALL_DIR) $(ROOT)/etc/
+ $(INSTALL_DIR) $(ROOT)/etc/inittab.d
+ # $(INSTALL_EXEC) ../doc/initscript.sample $(ROOT)/etc/
+- ln -sf halt $(ROOT)/sbin/reboot
+- ln -sf halt $(ROOT)/sbin/poweroff
+- ln -sf init $(ROOT)/sbin/telinit
- ln -sf ../sbin/killall5 $(ROOT)/bin/pidof
- if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
- ln -sf last $(ROOT)/usr/bin/lastb; \Offline