{"id":18494,"date":"2014-10-04T16:45:37","date_gmt":"2014-10-04T08:45:37","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/10\/04\/%e5%9c%a8-archlinux-%e8%a3%bd%e4%bd%9c%e7%b5%a6-berryboot-%e4%bd%bf%e7%94%a8%e7%9a%84-archlinux-image\/"},"modified":"2021-03-18T17:24:05","modified_gmt":"2021-03-18T09:24:05","slug":"%e5%9c%a8-archlinux-%e8%a3%bd%e4%bd%9c%e7%b5%a6-berryboot-%e4%bd%bf%e7%94%a8%e7%9a%84-archlinux-image","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/10\/04\/%e5%9c%a8-archlinux-%e8%a3%bd%e4%bd%9c%e7%b5%a6-berryboot-%e4%bd%bf%e7%94%a8%e7%9a%84-archlinux-image\/","title":{"rendered":"\u5728 ArchLinux \u88fd\u4f5c\u7d66 BerryBoot \u4f7f\u7528\u7684 ArchLinux Image"},"content":{"rendered":"<p>\u56e0\u70ba\u4e4b\u524d\u662f\u5728 Raspbian\u00a0\u4e0b\u88fd\u4f5c\u7684\uff0c\u4f46\u4e00\u76f4\u6c92\u6709\u6210\u529f\uff0c\u60f3\u6703\u4e0d\u6703\u662f\u7cfb\u7d71\u7684\u95dc\u4fc2\uff0c\u6240\u4ee5\u6539\u7528 ArchLinux\u00a0\u4f86\u88fd\u4f5c\u3002<\/p>\n<p>\u5b89\u88dd\u6240\u9808\u5957\u4ef6<br \/># <span style=\"color: #ff0000\">pacman -S squashfs-tools kpartx<\/span><br \/><span style=\"color: #0000ff\">error: target not found: kpartx<\/span><\/p>\n<p>\u4f46\u767c\u73fe\u7cfb\u7d71\u6c92\u6709 kpartx\u00a0\u9019\u4e00\u500b\u5957\u4ef6\uff0c\u5728 <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Creating_Arch_Linux_disk_image\" target=\"_blank\" rel=\"noopener noreferrer\">Creating Arch Linux disk image &#8211; ArchWiki<\/a>\u00a0\u9019\u4e00\u7bc7\u4e2d\u627e\u5230\u4e86\u89e3\u7b54\uff0c\u539f\u4f86 kpartx\u00a0\u662f\u5c6c\u65bc multipath-tools-git \u5957\u4ef6\uff0c\u800c\u4e14\u662f\u8981\u4ee5 AUR\u00a0\u7684\u65b9\u5f0f\u4f86\u5b89\u88dd\u3002<br \/>[@more@]<br \/>AUR\u00a0\u662f Arch User Repository\u00a0\u7684\u7e2e\u5beb\uff0c\u662f\u7531 ArchLinux \u793e\u7fa4\u6240\u7dad\u8b77\u7684\u5957\u4ef6\u5132\u5eab\uff0c\u6bcf\u4e00\u500b\u5957\u4ef6\u90fd\u5305\u542b PKGBUILD\uff0c\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u4f7f\u7528 makepkg\u00a0\u6307\u4ee4\u628a\u7a0b\u5f0f\u7684\u59cb\u78bc\u7de8\u8b6f\u6210\u5957\u4ef6\u3002<\/p>\n<p>\u5b89\u88dd\u7de8\u8b6f\u6642\u6240\u9808\u5957\u4ef6<br \/># <span style=\"color: #ff0000\">pacman -S &#8211;needed base-devel<\/span> <br \/><span style=\"color: #0000ff\">:: There are 25 members in group base-devel:<\/span><br \/><span style=\"color: #0000ff\">:: Repository core<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 1) autoconf\u00a0 2) automake\u00a0 3) binutils\u00a0 4) bison\u00a0 5) fakeroot\u00a0 6) file\u00a0 7) findutils\u00a0 8) flex\u00a0 9) gawk\u00a0 10) gcc<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 11) gettext\u00a0 12) grep\u00a0 13) groff\u00a0 14) gzip\u00a0 15) libtool\u00a0 16) m4\u00a0 17) make\u00a0 18) pacman\u00a0 19) patch<\/span><br \/><span style=\"color: #0000ff\">\u00a0\u00a0 20) pkg-config\u00a0 21) sed\u00a0 22) sudo\u00a0 23) texinfo\u00a0 24) util-linux\u00a0 25) which<\/span><\/p>\n<p><span style=\"color: #0000ff\">Enter a selection (default=all):<\/span><\/p>\n<p>\u9023\u7dda\u5230 AUR (en) &#8211; Home\uff1a<a href=\"https:\/\/aur.archlinux.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/aur.archlinux.org\/<\/a><br \/>\u5b89\u88dd wget\u00a0\u4f86\u4e0b\u8f09 Source Code<br \/># <span style=\"color: #ff0000\">pacman -S wget<\/span> <\/p>\n<p>\u5b89\u88dd\u7de8\u8b6f multipath-tools-git\u00a0\u6240\u9700\u5957\u4ef6<br \/># <span style=\"color: #ff0000\">pacman -S setconf<\/span><\/p>\n<p>\u5207\u63db\u5230\u4e00\u822c\u4f7f\u7528\u8005\u8eab\u4efd\uff0c\u56e0\u70ba\u7cfb\u7d71\u4e0d\u5efa\u8b70\u4f7f\u7528 root\u00a0\u8eab\u4efd\u4f86\u9032\u884c\u7de8\u8b6f<br \/># <span style=\"color: #ff0000\">su bananapi<\/span><\/p>\n<p>\u4e0b\u8f09 multipath-tools-git<br \/>$ <span style=\"color: #ff0000\">wget https:\/\/aur.archlinux.org\/packages\/mu\/multipath-tools-git\/multipath-tools-git.tar.gz<\/span><\/p>\n<p>\u89e3\u58d3\u7e2e<br \/>$ <span style=\"color: #ff0000\">tar xvzf multipath-tools-git.tar.gz<\/span><\/p>\n<p>\u5207\u63db\u76ee\u9304<br \/>$ <span style=\"color: #ff0000\">cd multipath-tools-git<\/span><\/p>\n<p>\u9032\u884c\u7de8\u8b6f<br \/>$ <span style=\"color: #ff0000\">makepkg<\/span><br \/><span style=\"color: #0000ff\">==&gt; Tidying install&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Purging unwanted files&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Removing libtool files&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Removing static library files&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Removing empty directories&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Compressing man and info pages&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Stripping unneeded symbols from binaries and libraries&#8230;<\/span><br \/><span style=\"color: #0000ff\">==&gt; Creating package &#8220;multipath-tools-git&#8221;&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Generating .PKGINFO file&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Generating .MTREE file&#8230;<\/span><br \/><span style=\"color: #0000ff\">\u00a0 -&gt; Compressing package&#8230;<\/span><br \/><span style=\"color: #0000ff\">==&gt; Leaving fakeroot environment.<\/span><br \/><span style=\"color: #0000ff\">==&gt; Finished making: multipath-tools-git 1397.aec68ab-1 (Sat Oct\u00a0 4 16:48:36 CST 2014)<\/span><\/p>\n<p>\u5207\u63db\u56de root\u00a0\u8eab\u4efd<br \/>$ <span style=\"color: #ff0000\">exit<\/span><\/p>\n<p>\u5b89\u88dd multipath-tools-git<br \/># <span style=\"color: #ff0000\">pacman -U \/home\/bananapi\/multipath-tools-git\/multipath-tools-git-1397.aec68ab-1-armv7h.pkg.tar.xz<\/span><\/p>\n<p># <span style=\"color: #ff0000\">which kpartx<\/span><br \/><span style=\"color: #0000ff\">\/usr\/bin\/kpartx<\/span><\/p>\n<p>\u91cd\u65b0\u5728 AcrhLinux\u00a0\u4e0a\u88fd\u4f5c\u7d66 BerryBoot\u00a0\u4f7f\u7528\u7684 Image\uff0c<span style=\"color: #ff0000\">\u9084\u662f\u5931\u6557<\/span>\uff01<\/p>\n<p>\u4e0d\u77e5\u9053\u662f\u4ec0\u9ebc\u539f\u56e0\uff0c\u4f46\u53ea\u597d\u66ab\u4e14\u5148\u653e\u68c4\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u70ba\u4e4b\u524d\u662f\u5728 Raspbian\u00a0\u4e0b\u88fd\u4f5c\u7684\uff0c\u4f46\u4e00\u76f4\u6c92\u6709\u6210\u529f\uff0c\u60f3\u6703\u4e0d\u6703\u662f\u7cfb\u7d71\u7684\u95dc\u4fc2\uff0c\u6240\u4ee5\u6539\u7528 ArchLinux\u00a0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/10\/04\/%e5%9c%a8-archlinux-%e8%a3%bd%e4%bd%9c%e7%b5%a6-berryboot-%e4%bd%bf%e7%94%a8%e7%9a%84-archlinux-image\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5728 ArchLinux \u88fd\u4f5c\u7d66 BerryBoot \u4f7f\u7528\u7684 ArchLinux Image\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167,162],"tags":[],"class_list":["post-18494","post","type-post","status-publish","format-standard","hentry","category-c-84386","category-c-83744"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["521637"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18494"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18494"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18494\/revisions"}],"predecessor-version":[{"id":20134,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18494\/revisions\/20134"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}