LoginSignup
1
1

More than 5 years have passed since last update.

CloudAtCostでArchLinuxブート

Last updated at Posted at 2015-12-11

この記事はArch Linux Advent Calender 2015の12日目です。

  • ArchLinuxのテンプレートが用意されていないCloudAtCostにArchLinuxをインストールします。
  • 自分はDebian7.1上で行いました。

インストール方法

ipxe.lkrnを/dev/sda1に置く
mkdir a
mount /dev/sda1 a

cp ~/ipxe.lkrn a
# grub rescue時用に/bootもコピーしておく。
cp -a /boot a
umount a

Grub2からipxe.lkrnをブートさせる

/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0

menuentry 'Arch Linux Netboot Environment' {
  set root='(hd0,1)'
  linux16 /ipxe.lkrn
}
update-grub
reboot

ArchLinux boot後の設定

passwd
systemctl start sshd
  • fdiskでパーティション変更。/dev/sda1はそのまま残す。
fdisk
Device     Boot   Start      End  Sectors  Size Id Type
/dev/sda1  *       2048   487423   485376  237M 83 Linux
/dev/sda2        487424  1511423  1024000  500M 82 Linux swap / Solaris
/dev/sda3       1511424 20971519 19460096  9.3G 83 Linux
反映
partprobe
mkswap /dev/sda2

mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
pacstrap /mnt base grub-bios openssh sudo
arch-chroot /mnt /bin/bash

略)

まとめ

  • カスタマイズしたipxe.lkrnを持っていればはかどりますね。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1