Skip to contentSkip to conversation

added extention to module files

PATCH In review Thiago Galesi 4 participants 7 messages Feb 18, 2009 5 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 added extention to module files

From: Thiago Galesi <[email protected]>

Here's a simple patch to add the .sh extention to modules/ files as suggested in a previous message

I'm not sure if more modifications are needed in dracut though.

---
 modules/{00dash => 00dash.sh}                     |    0 
 modules/{10redhat-i18n => 10redhat-i18n.sh}       |    0 
 modules/{90crypt => 90crypt.sh}                   |    0 
 modules/{90kernel-modules => 90kernel-modules.sh} |    0 
 modules/{90lvm => 90lvm.sh}                       |    0 
 modules/{95debug => 95debug.sh}                   |    0 
 modules/{95terminfo => 95terminfo.sh}             |    0 
 modules/{95udev-rules => 95udev-rules.sh}         |    0 
 modules/{99base => 99base.sh}                     |    0 
 9 files changed, 0 insertions(+), 0 deletions(-)
 rename modules/{00dash => 00dash.sh} (100%)
 rename modules/{10redhat-i18n => 10redhat-i18n.sh} (100%)
 rename modules/{90crypt => 90crypt.sh} (100%)
 rename modules/{90kernel-modules => 90kernel-modules.sh} (100%)
 rename modules/{90lvm => 90lvm.sh} (100%)
 rename modules/{95debug => 95debug.sh} (100%)
 rename modules/{95terminfo => 95terminfo.sh} (100%)
 rename modules/{95udev-rules => 95udev-rules.sh} (100%)
 rename modules/{99base => 99base.sh} (100%)
modules/00dash.sh renamed from modules/00dash +0 -0
similarity index 100%
rename from modules/00dash
rename to modules/00dash.sh
modules/10redhat-i18n.sh renamed from modules/10redhat-i18n +0 -0
similarity index 100%
rename from modules/10redhat-i18n
rename to modules/10redhat-i18n.sh
modules/90crypt.sh renamed from modules/90crypt +0 -0
similarity index 100%
rename from modules/90crypt
rename to modules/90crypt.sh
modules/90kernel-modules.sh renamed from modules/90kernel-modules +0 -0
similarity index 100%
rename from modules/90kernel-modules
rename to modules/90kernel-modules.sh
modules/90lvm.sh renamed from modules/90lvm +0 -0
similarity index 100%
rename from modules/90lvm
rename to modules/90lvm.sh
modules/95debug.sh renamed from modules/95debug +0 -0
similarity index 100%
rename from modules/95debug
rename to modules/95debug.sh
modules/95terminfo.sh renamed from modules/95terminfo +0 -0
similarity index 100%
rename from modules/95terminfo
rename to modules/95terminfo.sh
modules/95udev-rules.sh renamed from modules/95udev-rules +0 -0
similarity index 100%
rename from modules/95udev-rules
rename to modules/95udev-rules.sh
modules/99base.sh renamed from modules/99base +0 -0
similarity index 100%
rename from modules/99base
rename to modules/99base.sh
Signature · 6 lines
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1234960574-32612-1-git-send-email-ro-ubUvw2JwXcZg9hUCZPvPmw@public.gmane.org

#2 lore raw
Quoted 6 lines · Thiago Galesi

From: Thiago Galesi <[email protected]>

Here's a simple patch to add the .sh extention to modules/ files as suggested in a previous message

I'm not sure if more modifications are needed in dracut though.

You will also need to modify the dracut script to only source modules with the .sh extension, and make sure the $dracutmodules functionality still works as expected.

You will also need to modify the Makefile to only install modules with the .sh extension.

Quoted 67 lines

---

modules/{00dash => 00dash.sh}                     |    0
modules/{10redhat-i18n => 10redhat-i18n.sh}       |    0
modules/{90crypt => 90crypt.sh}                   |    0
modules/{90kernel-modules => 90kernel-modules.sh} |    0
modules/{90lvm => 90lvm.sh}                       |    0
modules/{95debug => 95debug.sh}                   |    0
modules/{95terminfo => 95terminfo.sh}             |    0
modules/{95udev-rules => 95udev-rules.sh}         |    0
modules/{99base => 99base.sh}                     |    0
9 files changed, 0 insertions(+), 0 deletions(-)

rename modules/{00dash => 00dash.sh} (100%)
rename modules/{10redhat-i18n => 10redhat-i18n.sh} (100%) rename modules/{90crypt => 90crypt.sh} (100%)
rename modules/{90kernel-modules => 90kernel-modules.sh} (100%) rename modules/{90lvm => 90lvm.sh} (100%)
rename modules/{95debug => 95debug.sh} (100%)
rename modules/{95terminfo => 95terminfo.sh} (100%) rename modules/{95udev-rules => 95udev-rules.sh} (100%) rename modules/{99base => 99base.sh} (100%)

modules/00dash.sh renamed from modules/00dash +0 -0
similarity index 100%
rename from modules/00dash
rename to modules/00dash.sh
modules/10redhat-i18n.sh renamed from modules/10redhat-i18n +0 -0
similarity index 100%
rename from modules/10redhat-i18n
rename to modules/10redhat-i18n.sh
modules/90crypt.sh renamed from modules/90crypt +0 -0
similarity index 100%
rename from modules/90crypt
rename to modules/90crypt.sh
modules/90kernel-modules.sh renamed from modules/90kernel-modules +0 -0
similarity index 100%
rename from modules/90kernel-modules
rename to modules/90kernel-modules.sh
modules/90lvm.sh renamed from modules/90lvm +0 -0
similarity index 100%
rename from modules/90lvm
rename to modules/90lvm.sh
modules/95debug.sh renamed from modules/95debug +0 -0
similarity index 100%
rename from modules/95debug
rename to modules/95debug.sh
modules/95terminfo.sh renamed from modules/95terminfo +0 -0
similarity index 100%
rename from modules/95terminfo
rename to modules/95terminfo.sh
modules/95udev-rules.sh renamed from modules/95udev-rules +0 -0
similarity index 100%
rename from modules/95udev-rules
rename to modules/95udev-rules.sh
modules/99base.sh renamed from modules/99base +0 -0
similarity index 100%
rename from modules/99base
rename to modules/99base.sh
Signature · 6 lines
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 9594AD60-9303-4345-8FC6-B59FAA2C60EE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#4 lore raw
Quoted 4 lines

You will also need to modify the dracut script to only source modules with the .sh extension, and make sure the $dracutmodules functionality still works as expected.

Well, the current match:

# source all our modules
for f in "$dsrc/modules"/*[^~]; do

Worked for reading the .sh files (but not only the .sh files, of course)

However, I'm not that familiar enough to bash to adapt this match to only .sh files (I tried a couple of things)

Signature · 6 lines
-
Thiago Galesi
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 82ecf08e0902180756u2e007426vdd7116c03e72925e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw
Quoted 7 lines · Thiago Galesi
Quoted 4 lines

You will also need to modify the dracut script to only source modules with the .sh extension, and make sure the $dracutmodules functionality still works as expected.

Well, the current match:

Quoted 8 lines
# source all our modules
for f in "$dsrc/modules"/*[^~]; do

Worked for reading the .sh files (but not only the .sh files, of course)

However, I'm not that familiar enough to bash to adapt this match to only .sh files (I tried a couple of things)

*.sh should do the trick.

Quoted 3 lines
Signature · 2 lines
-
Thiago Galesi

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to a message not in the archive
Quoted 7 lines · Thiago Galesi
Quoted 4 lines

You will also need to modify the dracut script to only source modules with the .sh extension, and make sure the $dracutmodules functionality still works as expected.

Well, the current match:

Quoted 7 lines
# source all our modules
for f in "$dsrc/modules"/*[^~]; do

Worked for reading the .sh files (but not only the .sh files, of course)

However, I'm not that familiar enough to bash to adapt this match to only .sh files (I tried a couple of things)

You mean:
for f in "$dsrc/modules"/*.sh; do
?

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): ac3eb2510902180817y380a7cddh940ba268bb46da97-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#9 lore raw
Quoted 4 lines

You mean:
for f in "$dsrc/modules"/*.sh; do
?

Silly, silly me :)
I was worried about the [^~] at the end , and couldn't make it work with the sh but, of course, *.sh does the trick

Signature · 6 lines
-
Thiago Galesi
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 82ecf08e0902180831k8f3fe85hc6e72b9687faa35c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#11 lore raw
Quoted 8 lines · Thiago Galesi
Quoted 4 lines

You mean:
for f in "$dsrc/modules"/*.sh; do
?

Silly, silly me :)
I was worried about the [^~] at the end , and couldn't make it work with the sh but, of course, *.sh does the trick

The [^~] says to skip everything that ends in ~. Since we are just looking for .sh now, we do not need it.

Quoted 4 lines
Signature · 3 lines
-- 
-
Thiago Galesi

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html