Initrd
PCNET
(판 사이의 차이)
Pc1412 (토론 | 기여)
(새 문서: =initramfs 와 initrd 풀기= initramfs 는 최신것 Initrd and cpio. This is a very short HOWTO add/remove files to/from your initrd.gz. '''1. Extract the files''' mkdir tmp...)
(새 문서: =initramfs 와 initrd 풀기= initramfs 는 최신것 Initrd and cpio. This is a very short HOWTO add/remove files to/from your initrd.gz. '''1. Extract the files''' mkdir tmp...)
2022년 12월 8일 (목) 01:38 기준 최신판
initramfs 와 initrd 풀기
initramfs 는 최신것
Initrd and cpio.
This is a very short HOWTO add/remove files to/from your initrd.gz.
1. Extract the files mkdir tmpfolder;cd tmpfolder zcat initrd.gz | cpio -i 2. Add/remove/change stuff... 3. Build a new initrd.gz file. (in tmpfolder) find . | cpio --quiet -o -H newc | gzip -9 > ../initrd.gz
initrd 는 옛날것
Following are the steps that enable one to edit a ramdisk for any changes 1. gunzip -c /boot/initrd-<version>.img >initrd.img 2. mkdir tmpDir 3. mount -o loop initrd.img tmpDir/ 4. cd tmpDir 5. Make all necessary changes (copy over modules, edit linuxrc etc) 6. umount tmpDir 7. gzip -9c initrd.img >/boot/initrd-<version>.img 8. Run ssi-ksync