openSUSE Forums > Install/Boot/Login » How to add bin files into initrd with mkinitrd

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Nov-2009, 00:09
Puzzled Penguin
 
Join Date: Nov 2009
Posts: 7
haoqianga11 hasn't been rated much yet
Question How to add bin files into initrd with mkinitrd

I customed initrd myself, i know add libs at /ect/sysconfig/kernel, then mkinitrd you can add needed lib, but init script in the initrd, i want to execute some program, how to add bin files into initrd with mkinitrd, and then i can used it in init script in the initrd. i know it can be added by manual.
Reply With Quote
  #2 (permalink)  
Old 03-Nov-2009, 02:33
Puzzled Penguin
 
Join Date: Nov 2009
Posts: 7
haoqianga11 hasn't been rated much yet
Default Re: How to add bin files into initrd with mkinitrd

maybe mkinitrd script hadn't this function, so i added it manual, i added some in initrd. iscsi.sh at /boot/, added iscsiadm and iscsid at /sbin/, added some libraries. cpio my own initrd, sync to iscsi storage, now i can startup SUSE ,but during boot ,at grub, i type:
grub>root (hd0,0)
grub>kernel /boot/vmlinuz ro root=LABEL=/
failed....
but,
grub>kernel /boot/vmlinuz ro root=/dev/sda1
ok!
why, at RHEL or Cenos, to enhance stabilization, usually using like root=LABEL=
Reply With Quote
  #3 (permalink)  
Old 03-Nov-2009, 06:50
Knurpht's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: groningen, netherlands
Posts: 1,804
Knurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enough
Default Re: How to add bin files into initrd with mkinitrd

Don't know if this is the place for your questions. AFAICS you changed the complete system. Therefore anything I can say would be a wild guess.
__________________
- AMD Athlon X2 6.0 GHz, 8 GB DDR2-800, 30 GB SSD, 1.5 TB, EVGA 9800GT, openSUSE 11.2 KDE4 4.3.3
- ASUS K70IO laptop, GT120M-1GB, 4 GB, 64 GB SSD, opensuse Factory, KDE4 4.3.3

R.E.S.T.E.C.P.
Reply With Quote
  #4 (permalink)  
Old 06-Nov-2009, 02:37
Puzzled Penguin
 
Join Date: Nov 2009
Posts: 7
haoqianga11 hasn't been rated much yet
Smile Re: How to add bin files into initrd with mkinitrd

I know how to add modules to initrd using mkinitrd (option in /etc/modprobe.conf), i wonder if i want add some execute file or script to init script in initrd, can i also use mkinitrd? just like ,install suse with iscsi storage ,config advance storage and iscsi target, then install it.when you cpio the initrd-`uname -r`, you can see something different from local install in init script, like,
/bin/iscsistart -t targetname -g 1, how it added? mkinitrd?
Reply With Quote
Reply

Bookmarks

Tags
init script, initrd, mkinitrd


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2