<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>netboot &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/netboot/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 22 Jun 2017 13:48:30 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Ubuntu Create Netboot Image</title>
		<link>https://richliu.com/2017/06/22/2153/ubuntu-create-netboot-image/</link>
					<comments>https://richliu.com/2017/06/22/2153/ubuntu-create-netboot-image/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Thu, 22 Jun 2017 13:48:30 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[17.04]]></category>
		<category><![CDATA[netboot]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=2153</guid>

					<description><![CDATA[<p>剛好工作上有需要用到在 Ubuntu 做一個新的 netboot image, 這樣就不用等 Canonica [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2017/06/22/2153/ubuntu-create-netboot-image/">Ubuntu Create Netboot Image</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>剛好工作上有需要用到在 Ubuntu 做一個新的 netboot image, 這樣就不用等 Canonical release 新版的 netboot image. </p>
<p>我用的是 Ubuntu 17.04, 如果要在別的版本上執行, 會有一點差異<br />
<span id="more-2153"></span></p>
<p>安裝所需要的 Package </p>
<pre lang="bash">
$ sudo apt install build-essential pbuilder bc debiandoc-sgml libbogl-dev libc6-pic libslang2-pic libnewt-pic genext2fs mklibs genisoimage dosfstools  tofrodos mtools po4a bf-utf-source fakeroot crash kexec-tools makedumpfile kernel-wedge xsltproc docbook-xml docbook-xsl u-boot-tools xorriso grub-efi-arm64-bin grub-common	
</pre>
<p>在 /etc/apt/source.list 加上這個來源</p>
<pre lang="text">
deb http://tw.ports.ubuntu.com/ubuntu-ports zesty main/debian-installer
deb http://tw.ports.ubuntu.com/ubuntu-ports zesty-updates main/debian-installer
deb http://tw.ports.ubuntu.com/ubuntu-ports zesty-backports main/debian-installer 
deb http://tw.ports.ubuntu.com/ubuntu-ports zesty-security main/debian-installer
</pre>
<p>接下來是升級系統</p>
<pre lang="bash">
$ sudo apt update
$ sudo apt upgrade 
</pre>
<p>下載 debian-installer 並且準備好所需要的目錄</p>
<pre lang="bash">
$ mkdir build && cd build
$ apt-get source debian-installer
$ tar xvf *.xz
$ cd debian-installer/build
$ mkdir dest
</pre>
<p>接下來編輯要做的 netboot image version, 修改 config/arm64.cfg, 像我只是要用最新版 kernel 的 boot image.<br />
改版號就可以了. 我是用和系統一樣的版號</p>
<pre lang="text">
KERNELMAJOR = 2.6
#KERNELVERSION = 4.10.0-19-generic
KERNELVERSION = 4.10.0-24-generic
</pre>
<p>最後一步, 做 netboot image, 看狀況可能很快, 也有可能要載套件花幾分鐘. </p>
<pre lang="bash">
$ make build_netboot
</pre>
<p>完成後的檔案會放在 dest/netboot 內</p>
<pre lang="bash">
# ls dest/netboot/
mini.iso  netboot.tar.gz  ubuntu-installer
</pre>
<p>ref.<br />
<a href="https://developer.rackspace.com/blog/using-a-custom-kernel-with-cloud-servers/" target="_blank" rel="noopener">Using a custom kernel with the Ubuntu Installer</a></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2017/06/22/2153/ubuntu-create-netboot-image/">Ubuntu Create Netboot Image</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2017/06/22/2153/ubuntu-create-netboot-image/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
