Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Installation without Internet access
- If you wish to install the archiso(e.g. the offical monthly release) as it is without an Internet connection, or, if you don't want to download the packages you want again:
- First, please follow the beginners' guide and skip some parts(like #Establish_an_internet_connection) until the #Install_the_base_system step.
- Install the archiso to the new root
- Instead of installing the packages with pacstrap(as it downloads every packages from remote repository and we have no Internet access now), please copy everything in the Live environment to the new root:
- # time (cp -ax /{usr,bin,lib,lib64,sbin,etc,home,opt,root,srv,var} /mnt)
- Note: This command excludes some special directories, as they should not be copied to the new root.
- Then, create some directories and copy the kernel image to the new root, in order to keep the integrity of the new system:
- # mkdir -vm755 /mnt/{boot,dev,run,mnt}
- # cp -vaT /run/archiso/bootmnt/arch/boot/$(uname -m)/vmlinuz /mnt/boot/vmlinuz-linux
- # mkdir -vm1777 /mnt/tmp
- # mkdir -vm555 /mnt/{sys,proc}
- After that, please generate a fstab as described in Beginners' guide#Generate_an_fstab.
- Chroot and configure the base system
- Next, chroot into your newly installed system:
- # arch-chroot /mnt /bin/bash
- Please note that before you configure the locale,keymap,etc,... there are something necessary to do, in order to get rid of the trace of a Live environment(in other words, the customization of archiso which does not fit a non-Live environment).
- Restore the configuration of journald
- This customization of archiso will lead to storing the system journal in RAM, it means that the journal will not available after reboot:
- # sed -i 's/Storage=volatile/#Storage=auto/' /etc/systemd/journald.conf
- Reset the pam's configuration
- This configuration of pam perhaps break the security of your new system, it's recommend to use the default configuration:
- # nano /etc/pam.d/su
- #%PAM-1.0
- auth sufficient pam_rootok.so
- # Uncomment the following line to implicitly trust users in the "wheel" group.
- #auth sufficient pam_wheel.so trust use_uid
- # Uncomment the following line to require a user to be in the "wheel" group.
- #auth required pam_wheel.so use_uid
- auth required pam_unix.so
- account required pam_unix.so
- session required pam_unix.so
- Remove special udev rule
- This rule of udev starts the dhcpcd automatically if there are any wired network interfaces.
- # rm /etc/udev/rules.d/81-dhcpcd.rules
- Disable and remove the services created by archiso
- Some service files are created for the Live environment, please disable the services and remove the file as they are unnecessary for the new system:
- # systemctl disable pacman-init.service choose-mirror.service
- # rm -r /etc/systemd/system/{choose-mirror.service,pacman-init.service,etc-pacman.d-gnupg.mount,getty@tty1.service.d}
- # rm /etc/systemd/scripts/choose-mirror
- Remove special scripts of the Live environment
- There are some scripts installed in the live system by archiso scripts, which are unnecessary for the new system:
- # rm /etc/systemd/system/getty@tty1.service.d/autologin.conf
- # rm /root/{.automated_script.sh,.zlogin}
- # rm /etc/sudoers.d/g_wheel
- # rm /etc/mkinitcpio-archiso.conf
- # rm -r /etc/initcpio
- Set the password of arch
- The customization script created a normal user called arch for the Live environment. You can set a passwd for user arch in order to login with this username(there is no passwd for arch by default):
- # passwd arch
- Or, if you don't want to use this username, please remove this user:
- # userdel -r arch
- Create an initial ramdisk environment
- # mkinitcpio -p linux
- Set the root password
- # passwd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement