From ec26c7845e6581ff5a2cb3578f5a51e7124437fa Mon Sep 17 00:00:00 2001 From: Jybz Date: Sun, 3 Nov 2019 22:34:06 +0000 Subject: [PATCH] Supprimer 'second_stage_install.sh' --- second_stage_install.sh | 71 ----------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 second_stage_install.sh diff --git a/second_stage_install.sh b/second_stage_install.sh deleted file mode 100644 index a0bf067..0000000 --- a/second_stage_install.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash -x - -# Copyright (C) 2017-2018 Daniel Tartavel-jeannot -# - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -export ARCH=arm - -/usr/bin/chown :shadow /etc/shadow /etc/gshadow /etc/login.defs /etc/pam.d/chage-chfn-chsh /etc/pam.d/chpasswd-newusers /etc/pam.d/system-auth /etc/pam.d/user-group-mod /bin/passwd /bin/chage - -/usr/bin/chown :systemd-journal -R /var/log/journal - -#Install all packages you need -/usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 basesystem chrony polkit lockdev rng-tools man openssh-server rfkill wireless-tools bluez wpa_supplicant make rsync kernel-desktop-latest binutils # systemd-bootchart libcap-utils keyutils mindi-busybox plymouth-scripts lvm2 #dmsetup -#For dracut : -/usr/sbin/urpmi --ignorearch --no-verify-rpm --auto --split-level 200 --split-length 0 u-boot-tools mindi-busybox plymouth-scripts #systemd-bootchart libcap-utils keyutils lvm2 #dmsetup - - -# echo "Install kernel from testing :" -# /usr/sbin/urpmi.update Testing -# /usr/sbin/urpmi --media Testing kernel-desktop-5.3.2-1.mga7 -# /usr/sbin/urpme kernel-desktop-5.2.13-2.mga7-1-1.mga7.armv7hl -# echo "Urpmi finished." -# dracut --no-compress --force 2>&1 -cd /boot - -# -H, --hostonly -# Host-Only mode: Install only what is needed for booting the local host instead of a generic host and generate host-specific configuration. -# -# Warning -# If chrooted to another root other than the real root device, use "--fstab" and provide a valid /etc/fstab. - -#The FSTAB is not yet created... It is created only after the image creation... - -# --fstab -# Use /etc/fstab instead of /proc/self/mountinfo. - -ARCH=arm CROSS_COMPILE=arm-linux-gnu- dracut --no-hostonly --local -kver 5.4-rc3 --no-early-microcode --add systemd --xz --printsize --kernel-image /boot/vmlinuz --fstab - -# ls -v1r /boot/vmlinuz* -# echo "--" -# ls -v1r /boot/vmlinuz-[[:digit:]]* -# rm -f /boot/vmlinuz -# ln -r -s $(ls -v1r /boot/vmlinuz-[[:digit:]]* | grep -m 1 "vmlinuz") ./boot/vmlinuz -# ls -v1r /boot/initrd-[[:digit:]]* -# rm -f /boot/initrd.img -cd /boot/ -# ln -r -s $(ls /initrd-* ) ./initrd.img -# echo "--" -# dracut --print-cmdline - -/usr/bin/chown :chrony -R /etc/chrony.keys /var/log/chrony -/usr/bin/chown :daemon /etc/wpa_supplicant.conf -/usr/bin/chown :tty /bin/write /bin/wall -/usr/bin/chown :lock /sbin/lockdev -/usr/bin/chown :bin /sbin/traceroute -/usr/bin/chown polkitd /etc/polkit-1/rules.d - -#DO NOT EXIT THE SCRIPT. A second part is automatically added in this script during the process in order to create the default user and set root password.