mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
Compare commits
7 commits
616e392b34
...
cd2a81e803
Author | SHA1 | Date | |
---|---|---|---|
|
cd2a81e803 | ||
|
cb7c8c3186 | ||
|
761c54877f | ||
|
e8ecb3ce7b | ||
|
084d863d8f | ||
|
ad7038ae95 | ||
|
78ae6e2cbb |
3 changed files with 44 additions and 31 deletions
|
@ -8,8 +8,6 @@ _DESTDIR="${1}"
|
||||||
_usage() {
|
_usage() {
|
||||||
echo -e "\e[1m\e[36mArchboot\e[m \e[1m- Quickinst Installer\e[m"
|
echo -e "\e[1m\e[36mArchboot\e[m \e[1m- Quickinst Installer\e[m"
|
||||||
echo -e "\e[1m------------------------------\e[m"
|
echo -e "\e[1m------------------------------\e[m"
|
||||||
echo -e "Usage: \e[1mquickinst <destdir>\e[m"
|
|
||||||
echo ""
|
|
||||||
echo "This script is for users, who would rather partition/mkfs/mount"
|
echo "This script is for users, who would rather partition/mkfs/mount"
|
||||||
echo "their target media manually, than go through the routines in"
|
echo "their target media manually, than go through the routines in"
|
||||||
echo "the setup script."
|
echo "the setup script."
|
||||||
|
@ -19,8 +17,9 @@ _usage() {
|
||||||
echo -e "Configure mirror: \e[1m/etc/pacman.d/mirrorlist\e[m"
|
echo -e "Configure mirror: \e[1m/etc/pacman.d/mirrorlist\e[m"
|
||||||
fi
|
fi
|
||||||
echo -e "Configure packages to install: \e[1m/etc/archboot/defaults\e[m"
|
echo -e "Configure packages to install: \e[1m/etc/archboot/defaults\e[m"
|
||||||
echo -e "Mount all your filesystems: \e[1m<destdir>\e[m."
|
echo -e "Mount all your filesystems: \e[1m<destdir>\e[m"
|
||||||
echo -e "Run: \e[1mquickinst <destdir>\e[m"
|
echo ""
|
||||||
|
echo -e "Usage: \e[1mquickinst <destdir>\e[m"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,19 +53,34 @@ _install_packages() {
|
||||||
${_PACMAN} -S ${_PACKAGES}
|
${_PACMAN} -S ${_PACKAGES}
|
||||||
}
|
}
|
||||||
|
|
||||||
# start script
|
_post_installation() {
|
||||||
|
echo -e "
|
||||||
|
|
||||||
|
\e[1mPackage installation complete.\e[m
|
||||||
|
|
||||||
|
Please install a \e[1mbootloader\e[m. Edit the appropriate config file for
|
||||||
|
your loader. Please use \e[1m${_VMLINUZ}\e[m as kernel image.
|
||||||
|
Chroot into your system to install it:
|
||||||
|
\e[1m# mount -o bind /dev ${_DESTDIR}/dev\e[m
|
||||||
|
\e[1m# mount -t proc none ${_DESTDIR}/proc\e[m
|
||||||
|
\e[1m# mount -t sysfs none ${_DESTDIR}/sys\e[m
|
||||||
|
\e[1m# chroot ${_DESTDIR} /bin/bash\e[m
|
||||||
|
|
||||||
|
Next step, initramfs setup:
|
||||||
|
Edit your \e[1m/etc/mkinitcpio.conf\e[m to fit your needs. After that run:
|
||||||
|
\e[1m# mkinitcpio -p ${_KERNELPKG}\e[m
|
||||||
|
|
||||||
|
Then \e[1mexit\e[m your chroot shell, edit \e[1m${_DESTDIR}/etc/fstab\e[m and \e[1mreboot\e[m!"
|
||||||
|
}
|
||||||
|
|
||||||
if [[ -z "${1}" ]]; then
|
if [[ -z "${1}" ]]; then
|
||||||
_usage
|
_usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
! [[ -d /tmp ]] && mkdir /tmp
|
|
||||||
|
|
||||||
if [[ -e "${_LOCAL_DB}" ]]; then
|
if [[ -e "${_LOCAL_DB}" ]]; then
|
||||||
_local_pacman_conf
|
_local_pacman_conf
|
||||||
else
|
else
|
||||||
_PACMAN_CONF=""
|
_PACMAN_CONF=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! _prepare_pacman; then
|
if ! _prepare_pacman; then
|
||||||
echo -e "Pacman preparation \e[91mFAILED\e[m."
|
echo -e "Pacman preparation \e[91mFAILED\e[m."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -79,23 +93,7 @@ if ! _install_packages; then
|
||||||
fi
|
fi
|
||||||
_locale_gen
|
_locale_gen
|
||||||
_chroot_umount
|
_chroot_umount
|
||||||
|
_post_installation
|
||||||
echo
|
|
||||||
echo -e "\e[1mPackage installation complete.\e[m"
|
|
||||||
echo
|
|
||||||
echo -e "Please install a \e[1mbootloader\e[m. Edit the appropriate config file for"
|
|
||||||
echo -e "your loader. Please use \e[1m${_VMLINUZ}\e[m as kernel image."
|
|
||||||
echo -e "Chroot into your system to install it:"
|
|
||||||
echo -e " \e[1m# mount -o bind /dev ${_DESTDIR}/dev\e[m"
|
|
||||||
echo -e " \e[1m# mount -t proc none ${_DESTDIR}/proc\e[m"
|
|
||||||
echo -e " \e[1m# mount -t sysfs none ${_DESTDIR}/sys\e[m"
|
|
||||||
echo -e " \e[1m# chroot ${_DESTDIR} /bin/bash\e[m"
|
|
||||||
echo
|
|
||||||
echo "Next step, initramfs setup:"
|
|
||||||
echo -e "Edit your \e[1m/etc/mkinitcpio.conf\e[m to fit your needs. After that run:"
|
|
||||||
echo -e " \e[1m# mkinitcpio -p ${_KERNELPKG}\e[m"
|
|
||||||
echo
|
|
||||||
echo -e "Then \e[1mexit\e[m your chroot shell, edit \e[1m${_DESTDIR}/etc/fstab\e[m and \e[1mreboot\e[m! "
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
|
|
@ -44,7 +44,7 @@ _create_container() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_network_check() {
|
_network_check() {
|
||||||
_TITLE="Archboot ${_RUNNING_ARCH} | ${_RUNNING_KERNEL} | Basic Setup | Network Check"
|
_TITLE="archboot.com | ${_RUNNING_ARCH} | ${_RUNNING_KERNEL} | Basic Setup | Network Check"
|
||||||
# wait 20 seconds for network link
|
# wait 20 seconds for network link
|
||||||
_COUNT=0
|
_COUNT=0
|
||||||
while true; do
|
while true; do
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<h1>Archboot Home | <a href="https://archboot.com/gallery.html">Gallery</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z7GXKW4MKHK7C"><img src="donate.png" alt="Donate"></a></h1>
|
<h1>Archboot Home | <a href="https://archboot.com/gallery.html">Gallery</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z7GXKW4MKHK7C"><img src="donate.png" alt="Donate"></a></h1>
|
||||||
<h2>2024 Fundraise: 0% <progress max="100" value="48">0%</progress> 100%</h2>
|
<h2>2024 Fundraise: 0% <progress max="100" value="48">0%</progress> 100%</h2>
|
||||||
<p><strong>© 2006 - 2024 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong> | Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a></strong><br>
|
<p><strong>© 2006 - 2024 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong> | Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a></strong><br>
|
||||||
<strong>Last update: 02.08.2024 08:13</strong></p>
|
<strong>Last update: 14.08.2024 16:26</strong></p>
|
||||||
<nav id="TOC" role="doc-toc">
|
<nav id="TOC" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#introduction" id="toc-introduction"><strong><span class="toc-section-number">1.</span> Introduction</strong></a></li>
|
<li><a href="#introduction" id="toc-introduction"><strong><span class="toc-section-number">1.</span> Introduction</strong></a></li>
|
||||||
|
@ -39,7 +39,8 @@
|
||||||
<li><a href="#cli-manage-archboot" id="toc-manage-archboot"><span class="toc-section-number">3.8</span> For Experts: CLI Manage Environment</a></li>
|
<li><a href="#cli-manage-archboot" id="toc-manage-archboot"><span class="toc-section-number">3.8</span> For Experts: CLI Manage Environment</a></li>
|
||||||
<li><a href="#tools-for-backup-and-copying-of-an-existing-system" id="toc-tools-for-backup-and-copying-of-an-existing-system"><span class="toc-section-number">3.9</span> Tools For Backup And Copying Of An Existing System</a></li>
|
<li><a href="#tools-for-backup-and-copying-of-an-existing-system" id="toc-tools-for-backup-and-copying-of-an-existing-system"><span class="toc-section-number">3.9</span> Tools For Backup And Copying Of An Existing System</a></li>
|
||||||
<li><a href="#restoring-an-usb-device-to-fat32-state" id="toc-restoring-an-usb-device-to-fat32-state"><span class="toc-section-number">3.10</span> Restoring An USB Device To FAT32 State</a></li>
|
<li><a href="#restoring-an-usb-device-to-fat32-state" id="toc-restoring-an-usb-device-to-fat32-state"><span class="toc-section-number">3.10</span> Restoring An USB Device To FAT32 State</a></li>
|
||||||
<li><a href="#system-configuration" id="toc-system-configuration"><span class="toc-section-number">3.11</span> System Configuration On Installed System</a></li>
|
<li><a href="#clean-blockdevice" id="toc-clean-blockdevice"><span class="toc-section-number">3.11</span> Clean Blockdevice</a></li>
|
||||||
|
<li><a href="#system-configuration" id="toc-system-configuration"><span class="toc-section-number">3.12</span> System Configuration On Installed System</a></li>
|
||||||
</ul></li>
|
</ul></li>
|
||||||
<li><strong><a href="#faq-known-issues-and-limitations" id="toc-faq-known-issues-and-limitations"><span class="toc-section-number">4.</span> FAQ / Known Issues / Limitations</a></strong></li>
|
<li><strong><a href="#faq-known-issues-and-limitations" id="toc-faq-known-issues-and-limitations"><span class="toc-section-number">4.</span> FAQ / Known Issues / Limitations</a></strong></li>
|
||||||
<li><strong><a href="#archiso" id="toc-archiso"><span class="toc-section-number">5.</span> Comparison To Archiso Image</a></strong></li>
|
<li><strong><a href="#archiso" id="toc-archiso"><span class="toc-section-number">5.</span> Comparison To Archiso Image</a></strong></li>
|
||||||
|
@ -620,7 +621,21 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h3 data-number="3.11" id="system-configuration"><span class="header-section-number">3.11</span> System Configuration On Installed System</h3>
|
<h3 data-number="3.11" id="clean-blockdevice"><span class="header-section-number">3.11</span> Clean Blockdevice</h3>
|
||||||
|
<p>You can use <strong>clean-blockdevice.sh</strong> for cleaning partition table and filesystem signatures of any blockdevice.</p>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr class="header">
|
||||||
|
<th>Attention: This will render all data on your device inaccessible!</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr class="odd">
|
||||||
|
<td><code># clean-blockdevice.sh <device(s)></code></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h3 data-number="3.12" id="system-configuration"><span class="header-section-number">3.12</span> System Configuration On Installed System</h3>
|
||||||
<p>You can also run <strong>archboot-setup.sh</strong> for <strong>system configuration</strong> on an installed system.</p>
|
<p>You can also run <strong>archboot-setup.sh</strong> for <strong>system configuration</strong> on an installed system.</p>
|
||||||
<p><a href="#package-installation" title="Installation"><strong>Install</strong></a> your corresponding archboot package for getting the <strong>archboot-setup.sh</strong> script.</p>
|
<p><a href="#package-installation" title="Installation"><strong>Install</strong></a> your corresponding archboot package for getting the <strong>archboot-setup.sh</strong> script.</p>
|
||||||
<h2 data-number="4." id="faq-known-issues-and-limitations"><span class="header-section-number">4.</span> <strong>FAQ / Known Issues / Limitations</strong></h2>
|
<h2 data-number="4." id="faq-known-issues-and-limitations"><span class="header-section-number">4.</span> <strong>FAQ / Known Issues / Limitations</strong></h2>
|
||||||
|
@ -815,7 +830,7 @@ The calculated size to boot the image follows the formula:<br>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td>ROOTFS packages</td>
|
<td>ROOTFS packages</td>
|
||||||
<td class="MyYes">225</td>
|
<td class="MyYes">226</td>
|
||||||
<td class="MyNo">419</td>
|
<td class="MyNo">419</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
|
|
Loading…
Reference in a new issue