Loading obarun-install +1 −37 Original line number Diff line number Diff line Loading @@ -31,44 +31,8 @@ fi ## Let's go select_editor choose_dir # Never comment this function edit_pacman listpackage aurpackage edit_customize_chroot rootdir # Never comment this function user_tmp create_dir mount_dir main_menu ## Copying file needed echo_info " Copy needed file in ${newroot}" cp /etc/resolv.conf "$newroot"/etc/resolv.conf || die " Impossible to copy the file resolv.conf" cp "$customize_chroot"/"$config_dir"/customizeChroot "$newroot"/etc/customizeChroot || die " ${customize_chroot} do not exist" ## Sync database echo_info " Synchronize database and check needed packages" pacman -r "$newroot" -Syy --config "$pac_conf"/"$config_dir"/pacman.conf || die " Impossible to synchronize database" check_pac_needed ## Install packages echo_info " Install packages from lists" pac_install || die " Impossible to install packages" aur_install || die " Impossible to install packages" echo_info " Generate fstab" genfstab -p "$newroot" >> "$newroot"/etc/fstab || die " Impossible to generate fstab" echo_info " Copying configuration files in ${newroot}" cp -af `pwd`/config/"$config_dir"/rootfs/* "$newroot"/ || die " Impossible to copy files" ## Customize newroot echo_info " Enter in chroot of ${newroot}" chroot "$newroot" /etc/customizeChroot || die " Failed to enter in : ${newroot} or Failed to execute correctly the file" Loading
obarun-install +1 −37 Original line number Diff line number Diff line Loading @@ -31,44 +31,8 @@ fi ## Let's go select_editor choose_dir # Never comment this function edit_pacman listpackage aurpackage edit_customize_chroot rootdir # Never comment this function user_tmp create_dir mount_dir main_menu ## Copying file needed echo_info " Copy needed file in ${newroot}" cp /etc/resolv.conf "$newroot"/etc/resolv.conf || die " Impossible to copy the file resolv.conf" cp "$customize_chroot"/"$config_dir"/customizeChroot "$newroot"/etc/customizeChroot || die " ${customize_chroot} do not exist" ## Sync database echo_info " Synchronize database and check needed packages" pacman -r "$newroot" -Syy --config "$pac_conf"/"$config_dir"/pacman.conf || die " Impossible to synchronize database" check_pac_needed ## Install packages echo_info " Install packages from lists" pac_install || die " Impossible to install packages" aur_install || die " Impossible to install packages" echo_info " Generate fstab" genfstab -p "$newroot" >> "$newroot"/etc/fstab || die " Impossible to generate fstab" echo_info " Copying configuration files in ${newroot}" cp -af `pwd`/config/"$config_dir"/rootfs/* "$newroot"/ || die " Impossible to copy files" ## Customize newroot echo_info " Enter in chroot of ${newroot}" chroot "$newroot" /etc/customizeChroot || die " Failed to enter in : ${newroot} or Failed to execute correctly the file"