You are not logged in.

#1 2009-11-09 12:49:45

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

initscripts removed... [SOLVED]

Hi,

It looks like I removed initscripts as an unneeded dependency, on prompt from another removed package. I'm not dead sure, but almost certain big_smile . Now the boot process halts like this (kernel messages):

...
kinit: Mounted root (ext3 filesystem) readonly.
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
sh-4.0#

Is there a way to fix it short of reinstall?

Last edited by Llama (2009-11-09 17:38:23)

Offline

#2 2009-11-09 12:53:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: initscripts removed... [SOLVED]

Boot with a live cd/usb, reinstall the package.

Offline

#3 2009-11-09 12:58:34

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: initscripts removed... [SOLVED]

chroot. It's at least worth a try:
1. boot a live CD
2. mount your arch root /some/where
3. chroot /some/where pacman -U <initscripts package file>

Edit: crosspost. Chroot is not needed here. The relevant pacman option is --root.

Last edited by grey (2009-11-09 13:02:27)


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#4 2009-11-09 13:02:57

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

tomk wrote:

Boot with a live cd/usb, reinstall the package.

Thanks! Sorry for yet another dumb question... What's a live cd in this context? It isn't the core image, is it?

Offline

#5 2009-11-09 13:06:50

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: initscripts removed... [SOLVED]

It's the installation CD.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#6 2009-11-09 13:23:59

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

grey wrote:

It's the installation CD.

The same as core image, I understand? That's what I've installed it from, once upon a time... smile

Offline

#7 2009-11-09 13:29:30

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: initscripts removed... [SOLVED]

Yes - the core img.

Actually, the chroot way may come in handy after all: it should work from any live CD - it doesn't have to be arch.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#8 2009-11-09 14:04:30

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

It isn't that easy...

(1) I've got no connection with the 'live cd'. According to the Beginner's Guide, I get connected after the initial install and before the first update.

(2) From the pacman cache the sysvinit package is somehow missing.

Let me try Chakra for a LiveCD. I'll have to download it first smile ...

Last edited by Llama (2009-11-09 16:23:24)

Offline

#9 2009-11-09 15:06:44

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: initscripts removed... [SOLVED]

Llama wrote:

(2) From the pacman cache the sysvinit package is somehow missing.

You can just download the package from a repo [i'm guesing since you are posting in this forum, you are doing so from windows?] in your hard disk and then install mounting your Arch / and chrooting in it.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#10 2009-11-09 16:20:03

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

I've got to report this: big_smile

Using Chakra LiveCD I've repaired my root install:

# mount /dev/sda2 /media
# pacman -Sr /media initscripts

Now the boot process won't make it to kdm:

Arch Linux (Don't Panic) 2.6.31-ARCH  (myhost) (tty1)

myhost login:

It's funny, but I can't remember the myhost entity. No, Sir. Any ideas?

Offline

#11 2009-11-09 16:22:37

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: initscripts removed... [SOLVED]

When you reinstalled initscripts, it installed the default rc.conf.  Check for an rc.conf.pacsave.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#12 2009-11-09 16:26:24

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

rson451 wrote:

When you reinstalled initscripts, it installed the default rc.conf.  Check for an rc.conf.pacsave.

Thanks! Any idea what root password myhost enjoys?

UPD:

It's my good ole root password, after all big_smile

Last edited by Llama (2009-11-09 16:27:41)

Offline

#13 2009-11-09 16:36:46

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

Thanks, rson451!

Everything in /etc got written over, I suppose neutral . Aught else big_smile ?

Last edited by Llama (2009-11-09 16:39:58)

Offline

#14 2009-11-09 17:12:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: initscripts removed... [SOLVED]

Just check the file list for the initscripts package - rc.conf, rc.local*, and inittab are the only ones you would need to restore to your customised state.

Offline

#15 2009-11-09 17:27:33

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

Thanks!

Offline

#16 2009-11-09 17:31:23

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: initscripts removed... [SOLVED]

sHyLoCk wrote:

You can just download the package from a repo [i'm guesing since you are posting in this forum, you are doing so from windows?]

No, it ain't that bad: another Arch box big_smile

Offline

Board footer

Powered by FluxBB