You are not logged in.

#1 2011-11-28 05:14:37

pikaxtrue
Member
Registered: 2011-11-28
Posts: 1

Can I remove scsi from HOOKS¿?¿

Hi i have the next mkinitcpio.conf :

...
HOOKS="base udev autodetect pata scsi sata filesystems usbinput"
...

I guess it is not necessary because when I search for "scsi" in the xterm do not show me anything about it:

...
$ lspci | grep -i sata:
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
$ lspci | grep -i scsi :
nothing
....

its correct?

thx

Offline

#2 2011-11-28 06:02:14

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Can I remove scsi from HOOKS¿?¿

Probably. The best way to test a hypothesis is to try. If something goes wrong, boot a LiveCD, chroot, and rebuild your initramfs.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2011-11-28 07:04:29

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

Re: Can I remove scsi from HOOKS¿?¿

And PLEASE don't do that with your question marks. smile

Offline

#4 2011-11-28 07:56:52

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: Can I remove scsi from HOOKS¿?¿

Try

dmesg | grep scsi

and you 'll be surprised


O' rly ? Ya rly Oo

Offline

#5 2011-11-28 13:09:18

jceasless
Member
Registered: 2009-04-20
Posts: 73

Re: Can I remove scsi from HOOKS¿?¿

FWIW, I just did a fresh install and removed both 'pata' and 'scsi' from the mkinitcpio config (I only have SATA drives). Works fine so far and makes rebuilding the image nice and fast smile

Offline

#6 2011-11-28 14:03:27

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

Re: Can I remove scsi from HOOKS¿?¿

cybertorture wrote:

Try

dmesg | grep scsi

and you 'll be surprised

FYI if this is meant to show that scsi support in mkinitcpio is still required, it's misleading. Yes, dmesg wll show that the scsi subsystem is being used, because both sata and pata drivers use it. However, mkinitcpio's scsi hook is only required if an actual scsi drive is being used.

$ mkinitcpio -H scsi
==> Help for hook 'scsi':
This hook loads the necessary modules for an scsi root device. Detection will
take place at runtime. To minimize the modules in the image, add the autodetect
hook too.

Offline

#7 2011-11-28 14:05:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can I remove scsi from HOOKS¿?¿

tomk wrote:
cybertorture wrote:

Try

dmesg | grep scsi

and you 'll be surprised

FYI if this is meant to show that scsi support in mkinitcpio is still required, it's misleading. Yes, dmesg wll show that the scsi subsystem is being used, because both sata and pata drivers use it. However, mkinitcpio's scsi hook is only required if an actual scsi drive is being used.

That's what I thought after reading 'mkinitcpio -H scsi', thanks for the confirmation.

Offline

#8 2011-11-28 15:47:27

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Can I remove scsi from HOOKS¿?¿

The wiki has pretty detailed documentation on most if not all mkinitcpio hooks. So instead of asking, read the wiki smile.

https://wiki.archlinux.org/index.php/Mkinitcpio#HOOKS


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2011-11-28 17:33:03

Awebb
Member
Registered: 2010-05-06
Posts: 6,298

Re: Can I remove scsi from HOOKS¿?¿

tomk wrote:

And PLEASE don't do that with your question marks. smile

Yeah, the good old SQL regex for account_locked=0.

Offline

Board footer

Powered by FluxBB