[arch-general] Boot iso with grub2
There has been a request for a findiso boot option so you can boot the iso with grub2 on a usb stick. I have this feature in my archiso-live and it works very well. Here is some code i have for it: _mnt_iso() { img="${1}" #mnt="${2}" mnt="/tmpfs/mnt/findiso" msg "::: Mounting ${img} to ${mnt}" mkdir -p "${mnt}" mount -r -t iso9660 "${img}" "${mnt}" } I remade my archiso hook to look more like the official one yesterday. I also added a _mnt_move function so you can move mounts instead of just bind them. Here is code for that: _mnt_move() { src="${1}" mnt="${2}" msg "::: Moving ${src} to ${mnt}" mkdir -p "${mnt}" /bin/mount -o move "${src}" "${mnt}" } I believe the /bootmnt could use _mnt_move instead of _mnt_bind. I have more features that could be added too. I hope this helps.
On Wed, Mar 31, 2010 at 4:50 PM, Christopher Rogers <slaxemulator@gmail.com> wrote:
There has been a request for a findiso boot option so you can boot the iso with grub2 on a usb stick. I have this feature in my archiso-live and it works very well.
Here is some code i have for it:
_mnt_iso() { img="${1}" #mnt="${2}" mnt="/tmpfs/mnt/findiso" msg "::: Mounting ${img} to ${mnt}" mkdir -p "${mnt}" mount -r -t iso9660 "${img}" "${mnt}" } I remade my archiso hook to look more like the official one yesterday.
I also added a _mnt_move function so you can move mounts instead of just bind them. Here is code for that:
_mnt_move() { src="${1}" mnt="${2}" msg "::: Moving ${src} to ${mnt}" mkdir -p "${mnt}" /bin/mount -o move "${src}" "${mnt}" }
I believe the /bootmnt could use _mnt_move instead of _mnt_bind. I have more features that could be added too.
I have no idea what findiso is, but a) If you want code incorporated, you'll have to send this in patch format. I'm not even clear b) You might get better feedback and responses on the arch-releng mailing list
Is there anything similar to debootstrap for Arch? Debootstrap basically a command where you give it some options and point it to a partition and it installs Debian (or a Debian-based distro) onto it.
On Wed, Mar 31, 2010 at 19:31, Brendan Long <korin43@gmail.com> wrote:
Is there anything similar to debootstrap for Arch? Debootstrap basically a command where you give it some options and point it to a partition and it installs Debian (or a Debian-based distro) onto it.
I bet you can smash AIF in the right way to get that to happen. Maybe you should write such a thing :)
On Wed, Mar 31, 2010 at 05:31:31PM -0600, Brendan Long wrote:
Is there anything similar to debootstrap for Arch? Debootstrap basically a command where you give it some options and point it to a partition and it installs Debian (or a Debian-based distro) onto it.
You can install packages under a particular directroy using the command pacman -S pkgname -r /gateway/to/hell So using that you can actually build a chrooted environment and work your way up. Somethign like $ pacman -S base -r /gateway/to/hell $ mount -t proc /gateway/to/hell/proc ... ... $ chroot bash /gateway/to/hell $ complete the installation there. should work. Regards ppk
On Wed, Mar 31, 2010 at 21:17, Piyush P Kurur <ppk> wrote:
You can install packages under a particular directroy using the command
pacman -S pkgname -r /gateway/to/hell
So using that you can actually build a chrooted environment and work your way up. Duh, now why didn't I think of that? There's a wiki page for how to install arch inside a chroot, use that.
On Wed, Mar 31, 2010 at 7:20 PM, Daenyth Blank <daenyth+arch@gmail.com> wrote:
On Wed, Mar 31, 2010 at 21:17, Piyush P Kurur <ppk> wrote:
You can install packages under a particular directroy using the command
pacman -S pkgname -r /gateway/to/hell
So using that you can actually build a chrooted environment and work your way up. Duh, now why didn't I think of that? There's a wiki page for how to install arch inside a chroot, use that.
http://wiki.archlinux.org/index.php?title=Special:Search&search=mkarchroot&go=Go There is also mkarchroot which is similar to debootstrap. You need to install devtools to get mkarchroot.
participants (6)
-
Aaron Griffin
-
Brendan Long
-
Christopher Rogers
-
Daenyth Blank
-
Dwight Schauer
-
Piyush P Kurur