mirror of
https://github.com/mayfrost/guides.git
synced 2024-11-28 02:11:46 +00:00
Update INITIATION.md
This commit is contained in:
parent
2d740b3b3f
commit
c8f86ce02f
@ -54,23 +54,27 @@ In these examples we make only two partitions but you can extend this if you kno
|
|||||||
* If on UEFI make directory and mount
|
* If on UEFI make directory and mount
|
||||||
`mkdir -p /mnt/drive/boot/efi`
|
`mkdir -p /mnt/drive/boot/efi`
|
||||||
`mount /dev/sda1 /mnt/drive/boot/efi`
|
`mount /dev/sda1 /mnt/drive/boot/efi`
|
||||||
* Mount everything else
|
|
||||||
`mkdir -p /mnt/drive/{dev,sys,proc,tmp,usr/src,var}`
|
|
||||||
`mount --bind /dev /mnt/drive/dev`
|
|
||||||
`mount --bind /tmp /mnt/drive/tmp`
|
|
||||||
`mount --bind /sys /mnt/drive/sys`
|
|
||||||
`mount -t proc none /mnt/drive/proc`
|
|
||||||
`mount -t devpts none /mnt/drive/dev/pts`
|
|
||||||
|
|
||||||
## SETUP
|
## SETUP
|
||||||
* On __CRUX__ run "_setup_", and if on UEFI select on setup grub2-efi (if using GRUB 2), efibootmgr, and elfutils from opt (only select core, and say yes when you're asked if you want to select individual packages). And if you are not using LILO de-select it from core.
|
* Create directories
|
||||||
* On __Source Mage GNU/Linux__ get the tarball
|
`mkdir -p /mnt/drive/{dev,sys,proc,tmp,usr/src,var}`
|
||||||
|
* On __CRUX__ run "_setup_", and if on UEFI during the setup select grub2-efi (if using GRUB 2), efibootmgr, and elfutils from opt (only select core, and say yes when you're asked if you want to select individual packages). And if you are not using LILO de-select it from core.
|
||||||
|
`setup`
|
||||||
|
* On __Source Mage GNU/Linux__ get the tarball
|
||||||
`cd /mnt/drive`
|
`cd /mnt/drive`
|
||||||
`wget -c "http://download.sourcemage.org/image/official/smgl-stable-<version>-basesystem-x86_64.<compression>"`
|
`wget -c "http://download.sourcemage.org/image/official/smgl-stable-<version>-basesystem-x86_64.<compression>"`
|
||||||
`tar xvf smgl-stable-<version>-basesystem-x86_64.<compression>`
|
`tar xvf smgl-stable-<version>-basesystem-x86_64.<compression>`
|
||||||
|
|
||||||
### CHROOT
|
### CHROOT
|
||||||
* Chroot specifying Bash in case live media has another shell
|
* On CRUX you can issue the next command to mount everything and chroot automatically
|
||||||
|
`setup-chroot`
|
||||||
|
* On __Source Mage GNU/Linux__ mount everything else manually
|
||||||
|
`mount --bind /dev /mnt/drive/dev`
|
||||||
|
`mount --bind /tmp /mnt/drive/tmp`
|
||||||
|
`mount --bind /sys /mnt/drive/sys`
|
||||||
|
`mount -t proc none /mnt/drive/proc`
|
||||||
|
`mount -t devpts none /mnt/drive/dev/pts`
|
||||||
|
* On __Source Mage GNU/Linux__ chroot manually specifying Bash in case live media has another shell
|
||||||
`chroot /mnt/drive /bin/bash`
|
`chroot /mnt/drive /bin/bash`
|
||||||
* Change root password in chroot (TEST IF YOUR KEYBOARD HAS ALL THE CORRECT MAPPINGS before you change the password)
|
* Change root password in chroot (TEST IF YOUR KEYBOARD HAS ALL THE CORRECT MAPPINGS before you change the password)
|
||||||
`passwd root`
|
`passwd root`
|
||||||
@ -115,6 +119,7 @@ Next are simple examples of compiling the kernel, for a more in depth view see h
|
|||||||
Next is a simple example of setting the bootloader, for a more in depth view see https://github.com/mayfrost/guides/blob/master/BOOTLOADER.md
|
Next is a simple example of setting the bootloader, for a more in depth view see https://github.com/mayfrost/guides/blob/master/BOOTLOADER.md
|
||||||
|
|
||||||
### LILO
|
### LILO
|
||||||
|
* On __Source Mage GNU/Linux__ do "_cast \<BOOTLOADER>_" to install lilo or elilo.
|
||||||
* If on UEFI use __elilo__ and change names to "_/etc/elilo.conf_" instead of "_/etc/lilo.conf_" and "_elilo_" instead of "_lilo_" in commands
|
* If on UEFI use __elilo__ and change names to "_/etc/elilo.conf_" instead of "_/etc/lilo.conf_" and "_elilo_" instead of "_lilo_" in commands
|
||||||
`nano /etc/lilo.conf`
|
`nano /etc/lilo.conf`
|
||||||
* Inserting "_password=\<PASSWORD>_" inside an OS stanza will protect with a password that OS, but inserting "_password=\<PASSWORD>_" just before the stanzas and outside any of them will protect with a password the bootloader itself (notice the space inside stanzas)
|
* Inserting "_password=\<PASSWORD>_" inside an OS stanza will protect with a password that OS, but inserting "_password=\<PASSWORD>_" just before the stanzas and outside any of them will protect with a password the bootloader itself (notice the space inside stanzas)
|
||||||
|
Loading…
Reference in New Issue
Block a user