Sign up
Login
New paste
Home
Trending
Archive
English
English
Português
Sign up
Login
New Paste
Browse
#boot arhiso #create gpt table #create boot swap root partitions read -p "Output Device (example: /dev/sdb):" Output_Device sfdisk --delete "$Output_Device"; #wipefs --all "$Output_Device"; #dd if=/dev/zero of="$Output_Device" bs=512 count=1 partprobe; (echo g; echo n; echo p; echo 1; echo ""; echo +512M; echo t; echo 1; echo n; echo p; echo 2; echo ""; echo ""; echo w; echo q) | fdisk $(echo $Output_Device); #(echo g; echo n; echo p; echo 1; echo ""; echo +512M; echo t; echo 1; echo n; echo p; echo 2; echo ""; echo +512M; echo t; echo 2; echo 38; echo n; echo p; echo 3; echo ""; echo ""; echo w; echo q) | fdisk $(echo $Output_Device); efipart=$(echo $Output_Device)1; #extbootpart=$(echo $Output_Device)2; rootpart=$(echo $Output_Device)2; # mkfs.fat -F32 -n EFI "$efipart"; # after ls -l /dev/disk/by-label found ARCH_202011 on mount of /dev/sr0 at /run/archiso/bootmnt/arch/boot/syslinux/archiso_sys-linux.cfg mkfs.fat -F32 -n ARCH_202011 "$efipart"; #mksfs.ext4 "$extbootpart"; mkfs.ext4 -L root "$rootpart"; mount "$rootpart" /mnt mkdir -p /mnt/boot #mkdir -p /mnt/efi #mount "$efipart" /mnt/efi mount "$efipart" /mnt/boot #mount "$extbootpart" /mnt/boot #get file name from disk and partitions unsquashfs -force -dest /mnt /run/archiso/bootmnt/arch/x86_64/airootfs.sfs lynx --source https://raw.githubusercontent.com/archlinux/mkinitcpio/master/mkinitcpio.conf | tr -d '\r' > /mnt/etc/mkinitcpio.conf lynx --source larbs.xyz/larbs.sh | tr -d '\r' > /mnt/larbs.sh # rsync -a --info=progress2 --no-i-r /run/archiso/bootmnt/arch/boot/. /mnt/boot ## grub alternative test ##unsquashfs -f -d /mnt /run/archiso/bootmnt/arch/x86_64/airootfs.sfs ## not working #mkdir -p /tmp/sfs-mnt #mount -t squashfs /run/archiso/bootmnt/arch/x86_64/airootfs.sfs /tmp/sfs-mnt #rsync -a --info=progress2 --no-i-r /tmp/sfs-mnt/. /mnt ##cp -av /tmp/sfs-mnt/. /mnt #umount /tmp/sfs-mnt #rm -rf /tmp/sfs-mnt #new # mount --bind squashfs-root squashfs-root # mount -t proc none squashfs-root/proc # mount -t sysfs none squashfs-root/sys # mount -o bind /dev squashfs-root/dev # mount -o bind /dev/pts squashfs-root/dev/pts ## important for pacman (for signature check) # cp -L /etc/resolv.conf squashfs-root/etc ## this is needed to use networking within the chroot mount --bind /mnt /mnt mount -t proc none /mnt/proc mount -t sysfs none /mnt/sys mount -o bind /dev /mnt/dev mount -o bind /dev/pts /mnt/dev/pts ## important for pacman (for signature check) cp -L /etc/resolv.conf /mnt/etc ## this is needed to use networking within the chroot #reflector --latest 5 --protocol http --protocol https --sort rate --save /mnt/etc/pacman.d/mirrorlist #end new #cp /run/archiso/bootmnt/arch/x86_64/vmlinuz /mnt/boot/vmlinuz-linux cp /run/archiso/bootmnt/arch/boot/x86_64/vmlinuz-linux /mnt/boot/vmlinuz-linux genfstab -U -p /mnt >> /mnt/etc/fstab arch-chroot /mnt << EOF pacman -Sy pacman -S --noconfirm archlinux-keyring echo "keyserver hkp://ipv4.pool.sks-keyservers.net:11371" >> /etc/pacman.d/gnupg/gpg.conf pacman-key --init pacman-key --populate archlinux pacman-key --refresh-keys #pacman-key --keyserver hkps://keyserver.ubuntu.com --refresh #pacman-key --refresh-keys --keyserver hkp://keyserver.kjsl.com:80 #pacman-key --refresh-keys --keyserver hkp://pgp.mit.edu:11371 #pacman-key --refresh-keys --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 sh larbs.sh yes | pacman -S grub efibootmgr #yes | pacman -S grub efibootmgr os-prober intel-ucode amd-ucode userdel live rm -rf /home/live useradd -m user echo "user:user" | chpasswd echo "root:root" | chpasswd mkinitcpio -g /boot/initramfs-linux.img systemctl get-default #systemctl set-default graphical.target #nano /etc/sddm.conf.d/autologin.conf #remove live from there #systemctl enable sddm grub-install --target=x86_64-efi --efi-directory=/boot #grub-install --target=x86_64-efi --efi-directory=/efi --boot-directory=/boot grub-mkconfig -o /boot/grub/grub.cfg ##bootctl --path=/boot install ##blkid -s PARTUUID -o value "$efipart" > /boot/loader/entries/arch.conf ##export SYSTEMD_RELAX_ESP_CHECKS=1 && test "yes" != "$(bootctl --esp-path=/boot is-installed)" && bootctl --esp-path=/boot install ##half worked without entry with extendetd boot partition type 38 as for boot path nd then formatin 38 partition with mksfs.fat then bootctl --esp-path=/efi --boot-path=/boot install #bootctl --esp-path=/efi --boot-path=/boot install groupadd -r user exit EOF #umount /mnt/boot #umount /mnt -l #umount -l -R /mnt #umount -l -R /mnt #reboot
Paste Settings
Paste Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax Highlighting :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Paste Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create New Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English
Português
Do you like cookies?
🍪 We use cookies to ensure you get the best experience on our website.
Learn more
I agree