Soumettre la recherche
Mettre en ligne
OSインストーラーの自作方法
•
2 j'aime
•
2,319 vues
LINE Corporation
Suivre
9月27日に開催されたLINE Developer meetup #45 in Kyotoでの登壇資料です
Lire moins
Lire la suite
Technologie
Signaler
Partager
Signaler
Partager
1 sur 31
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
Advanced Namespaces and cgroups
Advanced Namespaces and cgroups
Kernel TLV
Vmlinux: anatomy of bzimage and how x86 64 processor is booted
Vmlinux: anatomy of bzimage and how x86 64 processor is booted
Adrian Huang
Qt5 on ti processors
Qt5 on ti processors
Prabindh Sundareson
Introduction to eBPF and XDP
Introduction to eBPF and XDP
lcplcp1
twlkh-linux-vsyscall-and-vdso
twlkh-linux-vsyscall-and-vdso
Viller Hsiao
CETH for XDP [Linux Meetup Santa Clara | July 2016]
CETH for XDP [Linux Meetup Santa Clara | July 2016]
IO Visor Project
Linux MMAP & Ioremap introduction
Linux MMAP & Ioremap introduction
Gene Chang
Ext4 filesystem(1)
Ext4 filesystem(1)
Yoshihiro Yunomae
Recommandé
Advanced Namespaces and cgroups
Advanced Namespaces and cgroups
Kernel TLV
Vmlinux: anatomy of bzimage and how x86 64 processor is booted
Vmlinux: anatomy of bzimage and how x86 64 processor is booted
Adrian Huang
Qt5 on ti processors
Qt5 on ti processors
Prabindh Sundareson
Introduction to eBPF and XDP
Introduction to eBPF and XDP
lcplcp1
twlkh-linux-vsyscall-and-vdso
twlkh-linux-vsyscall-and-vdso
Viller Hsiao
CETH for XDP [Linux Meetup Santa Clara | July 2016]
CETH for XDP [Linux Meetup Santa Clara | July 2016]
IO Visor Project
Linux MMAP & Ioremap introduction
Linux MMAP & Ioremap introduction
Gene Chang
Ext4 filesystem(1)
Ext4 filesystem(1)
Yoshihiro Yunomae
Fun with Network Interfaces
Fun with Network Interfaces
Kernel TLV
Reverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux Kernel
Adrian Huang
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Yan Vugenfirer
Launch the First Process in Linux System
Launch the First Process in Linux System
Jian-Hong Pan
Understanding eBPF in a Hurry!
Understanding eBPF in a Hurry!
Ray Jenkins
Linux Network Stack
Linux Network Stack
Adrien Mahieux
eBPF maps 101
eBPF maps 101
SUSE Labs Taipei
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
Divye Kapoor
Slab Allocator in Linux Kernel
Slab Allocator in Linux Kernel
Adrian Huang
Anatomy of the loadable kernel module (lkm)
Anatomy of the loadable kernel module (lkm)
Adrian Huang
Summary of linux kernel security protections
Summary of linux kernel security protections
Shubham Dubey
How VXLAN works on Linux
How VXLAN works on Linux
Etsuji Nakai
[KubeCon NA 2020] containerd: Rootless Containers 2020
[KubeCon NA 2020] containerd: Rootless Containers 2020
Akihiro Suda
Debug dpdk process bottleneck & painpoints
Debug dpdk process bottleneck & painpoints
Vipin Varghese
qemu + gdb + sample_code: Run sample code in QEMU OS and observe Linux Kernel...
qemu + gdb + sample_code: Run sample code in QEMU OS and observe Linux Kernel...
Adrian Huang
Stack pivot
Stack pivot
sounakano
UM2019 Extended BPF: A New Type of Software
UM2019 Extended BPF: A New Type of Software
Brendan Gregg
Linux Initialization Process (1)
Linux Initialization Process (1)
shimosawa
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
OpenStack Korea Community
Linux Serial Driver
Linux Serial Driver
艾鍗科技
Lessons from Driverless AI going to Production
Lessons from Driverless AI going to Production
Sri Ambati
Linux kernel debugging
Linux kernel debugging
libfetion
Contenu connexe
Tendances
Fun with Network Interfaces
Fun with Network Interfaces
Kernel TLV
Reverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux Kernel
Adrian Huang
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Yan Vugenfirer
Launch the First Process in Linux System
Launch the First Process in Linux System
Jian-Hong Pan
Understanding eBPF in a Hurry!
Understanding eBPF in a Hurry!
Ray Jenkins
Linux Network Stack
Linux Network Stack
Adrien Mahieux
eBPF maps 101
eBPF maps 101
SUSE Labs Taipei
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
Divye Kapoor
Slab Allocator in Linux Kernel
Slab Allocator in Linux Kernel
Adrian Huang
Anatomy of the loadable kernel module (lkm)
Anatomy of the loadable kernel module (lkm)
Adrian Huang
Summary of linux kernel security protections
Summary of linux kernel security protections
Shubham Dubey
How VXLAN works on Linux
How VXLAN works on Linux
Etsuji Nakai
[KubeCon NA 2020] containerd: Rootless Containers 2020
[KubeCon NA 2020] containerd: Rootless Containers 2020
Akihiro Suda
Debug dpdk process bottleneck & painpoints
Debug dpdk process bottleneck & painpoints
Vipin Varghese
qemu + gdb + sample_code: Run sample code in QEMU OS and observe Linux Kernel...
qemu + gdb + sample_code: Run sample code in QEMU OS and observe Linux Kernel...
Adrian Huang
Stack pivot
Stack pivot
sounakano
UM2019 Extended BPF: A New Type of Software
UM2019 Extended BPF: A New Type of Software
Brendan Gregg
Linux Initialization Process (1)
Linux Initialization Process (1)
shimosawa
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
OpenStack Korea Community
Linux Serial Driver
Linux Serial Driver
艾鍗科技
Tendances
(20)
Fun with Network Interfaces
Fun with Network Interfaces
Reverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux Kernel
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Launch the First Process in Linux System
Launch the First Process in Linux System
Understanding eBPF in a Hurry!
Understanding eBPF in a Hurry!
Linux Network Stack
Linux Network Stack
eBPF maps 101
eBPF maps 101
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
Slab Allocator in Linux Kernel
Slab Allocator in Linux Kernel
Anatomy of the loadable kernel module (lkm)
Anatomy of the loadable kernel module (lkm)
Summary of linux kernel security protections
Summary of linux kernel security protections
How VXLAN works on Linux
How VXLAN works on Linux
[KubeCon NA 2020] containerd: Rootless Containers 2020
[KubeCon NA 2020] containerd: Rootless Containers 2020
Debug dpdk process bottleneck & painpoints
Debug dpdk process bottleneck & painpoints
qemu + gdb + sample_code: Run sample code in QEMU OS and observe Linux Kernel...
qemu + gdb + sample_code: Run sample code in QEMU OS and observe Linux Kernel...
Stack pivot
Stack pivot
UM2019 Extended BPF: A New Type of Software
UM2019 Extended BPF: A New Type of Software
Linux Initialization Process (1)
Linux Initialization Process (1)
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
[OpenStack 하반기 스터디] Interoperability with ML2: LinuxBridge, OVS and SDN
Linux Serial Driver
Linux Serial Driver
Similaire à OSインストーラーの自作方法
Lessons from Driverless AI going to Production
Lessons from Driverless AI going to Production
Sri Ambati
Linux kernel debugging
Linux kernel debugging
libfetion
Ironic 140622212631-phpapp02
Ironic 140622212631-phpapp02
Narender Kumar
Ironic
Ironic
Haomeng Wang
Ironic 140622212631-phpapp02
Ironic 140622212631-phpapp02
Narender Kumar
Grabbing the PostgreSQL Elephant by the Trunk
Grabbing the PostgreSQL Elephant by the Trunk
Harold Giménez
CCNP Data Center Centralized Management Automation
CCNP Data Center Centralized Management Automation
E.S.G. JR. Consulting, Inc.
CPAN 模組二三事
CPAN 模組二三事
Lin Yo-An
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
tomasbart
Qemu device prototyping
Qemu device prototyping
Yan Vugenfirer
CiklumCPPSat: Alexey Podoba "Automatic assembly. Cmake"
CiklumCPPSat: Alexey Podoba "Automatic assembly. Cmake"
Ciklum Ukraine
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
biicode
Multipath
Multipath
Michal Sedlak
Stupid Boot Tricks: using ipxe and chef to get to boot management bliss
Stupid Boot Tricks: using ipxe and chef to get to boot management bliss
macslide
Hotsos Advanced Linux Tools
Hotsos Advanced Linux Tools
Kellyn Pot'Vin-Gorman
Running Applications on the NetBSD Rump Kernel by Justin Cormack
Running Applications on the NetBSD Rump Kernel by Justin Cormack
eurobsdcon
Automating Complex Setups with Puppet
Automating Complex Setups with Puppet
Kris Buytaert
Automating complex infrastructures with Puppet
Automating complex infrastructures with Puppet
Kris Buytaert
COSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem porting
Eric Lin
Geode on Docker
Geode on Docker
Apache Geode
Similaire à OSインストーラーの自作方法
(20)
Lessons from Driverless AI going to Production
Lessons from Driverless AI going to Production
Linux kernel debugging
Linux kernel debugging
Ironic 140622212631-phpapp02
Ironic 140622212631-phpapp02
Ironic
Ironic
Ironic 140622212631-phpapp02
Ironic 140622212631-phpapp02
Grabbing the PostgreSQL Elephant by the Trunk
Grabbing the PostgreSQL Elephant by the Trunk
CCNP Data Center Centralized Management Automation
CCNP Data Center Centralized Management Automation
CPAN 模組二三事
CPAN 模組二三事
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
Qemu device prototyping
Qemu device prototyping
CiklumCPPSat: Alexey Podoba "Automatic assembly. Cmake"
CiklumCPPSat: Alexey Podoba "Automatic assembly. Cmake"
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
Multipath
Multipath
Stupid Boot Tricks: using ipxe and chef to get to boot management bliss
Stupid Boot Tricks: using ipxe and chef to get to boot management bliss
Hotsos Advanced Linux Tools
Hotsos Advanced Linux Tools
Running Applications on the NetBSD Rump Kernel by Justin Cormack
Running Applications on the NetBSD Rump Kernel by Justin Cormack
Automating Complex Setups with Puppet
Automating Complex Setups with Puppet
Automating complex infrastructures with Puppet
Automating complex infrastructures with Puppet
COSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem porting
Geode on Docker
Geode on Docker
Plus de LINE Corporation
JJUG CCC 2018 Fall 懇親会LT
JJUG CCC 2018 Fall 懇親会LT
LINE Corporation
Reduce dependency on Rx with Kotlin Coroutines
Reduce dependency on Rx with Kotlin Coroutines
LINE Corporation
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
LINE Corporation
Use Kotlin scripts and Clova SDK to build your Clova extension
Use Kotlin scripts and Clova SDK to build your Clova extension
LINE Corporation
The Magic of LINE 購物 Testing
The Magic of LINE 購物 Testing
LINE Corporation
GA Test Automation
GA Test Automation
LINE Corporation
UI Automation Test with JUnit5
UI Automation Test with JUnit5
LINE Corporation
Feature Detection for UI Testing
Feature Detection for UI Testing
LINE Corporation
LINE 新星計劃介紹與新創團隊分享
LINE 新星計劃介紹與新創團隊分享
LINE Corporation
LINE 技術合作夥伴與應用分享
LINE 技術合作夥伴與應用分享
LINE Corporation
LINE 開發者社群經營與技術推廣
LINE 開發者社群經營與技術推廣
LINE Corporation
日本開發者大會短講分享
日本開發者大會短講分享
LINE Corporation
LINE Chatbot - 活動報名報到設計分享
LINE Chatbot - 活動報名報到設計分享
LINE Corporation
在 LINE 私有雲中使用 Managed Kubernetes
在 LINE 私有雲中使用 Managed Kubernetes
LINE Corporation
LINE TODAY高效率的敏捷測試開發技巧
LINE TODAY高效率的敏捷測試開發技巧
LINE Corporation
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE Corporation
LINE Things - LINE IoT平台新技術分享
LINE Things - LINE IoT平台新技術分享
LINE Corporation
LINE Pay - 一卡通支付新體驗
LINE Pay - 一卡通支付新體驗
LINE Corporation
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Corporation
Keynote - LINE 的技術策略佈局與跨國產品開發
Keynote - LINE 的技術策略佈局與跨國產品開發
LINE Corporation
Plus de LINE Corporation
(20)
JJUG CCC 2018 Fall 懇親会LT
JJUG CCC 2018 Fall 懇親会LT
Reduce dependency on Rx with Kotlin Coroutines
Reduce dependency on Rx with Kotlin Coroutines
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
Use Kotlin scripts and Clova SDK to build your Clova extension
Use Kotlin scripts and Clova SDK to build your Clova extension
The Magic of LINE 購物 Testing
The Magic of LINE 購物 Testing
GA Test Automation
GA Test Automation
UI Automation Test with JUnit5
UI Automation Test with JUnit5
Feature Detection for UI Testing
Feature Detection for UI Testing
LINE 新星計劃介紹與新創團隊分享
LINE 新星計劃介紹與新創團隊分享
LINE 技術合作夥伴與應用分享
LINE 技術合作夥伴與應用分享
LINE 開發者社群經營與技術推廣
LINE 開發者社群經營與技術推廣
日本開發者大會短講分享
日本開發者大會短講分享
LINE Chatbot - 活動報名報到設計分享
LINE Chatbot - 活動報名報到設計分享
在 LINE 私有雲中使用 Managed Kubernetes
在 LINE 私有雲中使用 Managed Kubernetes
LINE TODAY高效率的敏捷測試開發技巧
LINE TODAY高效率的敏捷測試開發技巧
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE Things - LINE IoT平台新技術分享
LINE Things - LINE IoT平台新技術分享
LINE Pay - 一卡通支付新體驗
LINE Pay - 一卡通支付新體驗
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Platform API Update - 打造一個更好的Chatbot服務
Keynote - LINE 的技術策略佈局與跨國產品開發
Keynote - LINE 的技術策略佈局與跨國產品開發
Dernier
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
apidays
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Zilliz
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
Zilliz
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
lior mazor
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
apidays
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
The Digital Insurer
Dernier
(20)
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
OSインストーラーの自作方法
1.
LINE DEVELOPER MEETUP
#45 IN KYOTO2018-09-27 TOMOHIRO KIMURA @ LINE CORPORATION OS
2.
• Tomohiro Kimura •
LINE • IT Service Center – System dept – System Engineering Team • Engineer • LINE • • OS
3.
Agenda • LINE
OS • pxeboot • • OS
4.
LINE OS
5.
• LINE 90% • •
( ) • VM / Container • • LINE OS
6.
Hypervisor / VM
/ Container OS OS
7.
OS LINE OS old new RAID
OS pxeboot webui DHCP, TFTP Installer kickstart pkg yum tar other config Profile & Debuggable • RAID • Kickstart yum pkg •
8.
LINE OS Frontend (WebUI,API,DB) Backend (dhcp,tftp,pxe,os image) http pxeboot •
Fronend • Hostname,macaddr,ipaddr,RAID ,OS • Backend: dhcp,tftp • pxeboot • • RAID • Partition, FileSystem • OS Image http • • reboot
9.
PXEBOOT
10.
dhcpd.conf PXEBOOT dhcpd.conf host host01 { hardware
ethernet 64:5e:be:ab:cd:ef; # host01 Macaddr fixed-address 192.168.123.11; # host01 IPaddr option host-name ”host01"; next-server 192.168.123.10; # tftp IPaddr filename "pxelinux.0”; }
11.
pxelinux.cfg PXEBOOT pxelinux.cfg/c0a87b08 DEFAULT menu.c32 PROMPT 0 TIMEOUT
50 MENU TITLE Support PXE LABEL Installer (ttyS0,115200n8) MENU LABEL Installer CentOS 6.9 x86_64 (ttyS0,115200n8) kernel boot/centos/6/vmlinuz append initrd=boot/centos/6/initrd.img root= rw console=tty1 console=ttyS0,115200n8 • c0a87b08 192.168.123.11 hex • join('', map {sprintf "¥U%02x", $_} split(/¥./, $ip)); • vmlinuz Distribution Kernel • initrd.img initram image • root= rootfs kernel panic
12.
13.
• pxelinux.cfg linux
kernel initrd.img tftp • Kernel • Initrd.img • Kernel /sbin/init # see linux/init/main.c • sysvinit upstart /sbin/init • systemd /lib/systemd/systemd • /sbin/init • bash python perl init #!/bin/bash reboot
14.
• Daemon systemd
systemd • Systemd /sbin/init systemd service • sysvinit /etc/rc.*/ systemd
15.
• initramfs nfs
rootfs / • initramfs • Storage Network kernel module • ( busybox) • /etc (udev, passwd ) • initramfs • • daemon • /sbin/init initramfs
16.
• pure initramfs •
initramfs (gz cpio) • /sbin/init • • • initramfs initramfs
17.
INITRAMFS # dracut –c
dracut.conf initrd_base.img 2.6.32 # zcat initrd_base.img | cpio –i -c $ cat dracut.conf dracutmodules+="base dash network kernel-modules terminfo nfs udev- rules” add_drivers+="hpsa e1000 igb megaraid_sas"
18.
INITRAMFS # yum -y
--installroot=`pwd` install `cat install_rpm_list` # rm –rf `cat neet_not_list` • rpm initramfs • busybox • dracut.conf • man
19.
INITRAMFS # find .
-print0 | cpio --null -ov --format=newc | gzip -9 > ../initrd.img
20.
• /dev • kernel
module • • • daemon • pkg • LINE pkg /SBIN/INIT
21.
RAID RAID # MegaCli64 CfgLdDel
-LALL -a0 -NoLog; MegaCli64 -AdpSetProp -EnableJBOD -0 -a0 # MegaCli64 -CfgLdAdd -r0[32:0] CachedBadBBU -a0 -NoLog
22.
Partition # dd if=/dev/zero
of=/dev/sda bs=65536 count=1 # /usr/sbin/sgdisk -Z /dev/sda # parted -s /dev/sda mklabel gpt # parted -s /dev/sda unit B mkpart primary ext3 1048576 1074790400 # parted -s /dev/sda set 1 boot on # parted -s /dev/sda unit B mkpart primary linux-swap 1074790912 3222274560 # parted -s /dev/sda unit B mkpart primary xfs 3222275072 100% Number Start End Size File system Name Flags 17.4kB 1049kB 1031kB Free Space 1 1049kB 1075MB 1074MB primary boot 2 1075MB 3222MB 2147MB linux-swap(v1) primary 3 3222MB 479GB 476GB xfs primary
23.
filesystem # mkfs.xfs -b
size=1024 -f /dev/sda3 # mount -t xfs /dev/sda3 /mnt/ # mkfs.ext3 -F /dev/sda1 # tune2fs -O +dir_index /dev/sda1 # mount -t ext3 /dev/sda1 /mnt/boot # mkswap -f -c /dev/sda2 # mount -o bind /dev /mnt/dev # mount -t proc none /mnt/proc # mount -o bind /sys /mnt/sys
24.
OS # wget -q
-O - http://192.168.123.10/images/centos_6.9_x86_64.tgz | tar -- numeric-owner -xzf - -C /mnt # chroot /mnt /sbin/grub-install /dev/sda # /mnt Network # /mnt hostname # (chef ansible )
25.
reboot # reboot -f
26.
OS
27.
OS # mkdir -p
${BUILDROOT} # yum -y --installroot=${BUILDROOT} install `cat packages/10_base.list` # tar cvzf artifact/centos_6.9.tgz -C ${BUILDROOT} . Packer
28.
29.
• Webui,api • pxeboot
pxeboot • initramfs • raid • os yum • os • Distribution
30.
Anaconda
31.
THANK YOU
Télécharger maintenant