Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
developpement:productions:sidus4stretch [2017/12/25 05:25] equemene |
developpement:productions:sidus4stretch [2019/09/17 10:16] equemene |
||
---|---|---|---|
Ligne 257: | Ligne 257: | ||
MENU LABEL SIDUS based on Debian Stretch on x86_64 : OverlayFS mode | MENU LABEL SIDUS based on Debian Stretch on x86_64 : OverlayFS mode | ||
MENU default | MENU default | ||
- | KERNEL vmlinuz-4.9.0-3-amd64@stretch64nfs | + | KERNEL vmlinuz-4.9.0-11-amd64@stretch64nfs |
- | APPEND console=tty1 initrd=initrd.img-4.9.0-3-amd64@stretch64nfs rd.shell sidus=overlay ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 | + | APPEND console=tty1 initrd=initrd.img-4.9.0-11-amd64@stretch64nfs rd.shell sidus=overlay ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 |
LABEL stretch64aufs | LABEL stretch64aufs | ||
MENU LABEL SIDUS based on Debian Stretch on x86_64 : AUFS mode | MENU LABEL SIDUS based on Debian Stretch on x86_64 : AUFS mode | ||
#MENU default | #MENU default | ||
- | KERNEL vmlinuz-4.9.0-3-amd64@stretch64nfs | + | KERNEL vmlinuz-4.9.0-11-amd64@stretch64nfs |
- | APPEND console=tty1 initrd=initrd.img-4.9.0-3-amd64@stretch64nfs rd.shell sidus=aufs ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 | + | APPEND console=tty1 initrd=initrd.img-4.9.0-11-amd64@stretch64nfs rd.shell sidus=aufs ip=dhcp root=nfs:10.20.17.254:/srv/nfsroot/stretch64nfs:vers=3,rsize=1048576,wsize=1048576,tcp,nolock,noatime,nocto,actimeo=1,intr,hard net.ifnames=0 modprobe.blacklist=nouveau ipv6.disable=1 sky2.disable_msi=1 bnx2.disable_msi=1 intel_pstate=disable kernel.dmesg_restrict=0 |
</code> | </code> | ||
Ligne 399: | Ligne 399: | ||
<code bash> | <code bash> | ||
sidus apt-get update | sidus apt-get update | ||
- | sidus apt-get -y install aptitude dselect dracut dracut-core dracut-network isc-dhcp-common isc-dhcp-client openssh-server locales aufs-dkms aufs-tools firmware-linux-nonfree bridge-utils firmware-linux firmware-bnx2 dstat sysstat iftop htop iotop emacs lsof tshark mbw strace memtest86 dbench iozone3 psmisc console-setup less vim nscd nfs-common stressapptest mlocate net-tools linux-image-${ARCH} linux-headers-${ARCH} | + | sidus apt-get -y install aptitude dselect dracut dracut-core dracut-network isc-dhcp-common isc-dhcp-client openssh-server locales aufs-dkms aufs-tools firmware-linux-nonfree bridge-utils firmware-linux firmware-bnx2 dstat sysstat iftop htop iotop emacs lsof tshark mbw strace memtest86 dbench iozone3 psmisc console-setup less vim nscd nfs-common stressapptest mlocate net-tools hwloc time ssh |
+ | sidus apt-get -y install linux-image-${ARCH} linux-headers-${ARCH} | ||
+ | # pour architectures 32 bits Intel | ||
+ | sidus apt-get -y install linux-image-686-pae linux-headers-686-pae linux-image-586 linux-headers-586 | ||
</code> | </code> | ||
+ | |||
+ | Sous architectures 32 bits, 2 noyaux sont à intégrer | ||
• Paramétrage de la localisation, la langue, le fuseau horaire à partir du serveur lui même : | • Paramétrage de la localisation, la langue, le fuseau horaire à partir du serveur lui même : | ||
Ligne 454: | Ligne 459: | ||
</code> | </code> | ||
+ | • Vérification que le démarreur comprend bien les composants demandés | ||
+ | <code> | ||
+ | ls ${SIDUS}/boot/initrd.img-*-$(echo ${ARCH} | sed 's/i386/686/g') | xargs -I '{}' ${SIDUS}/usr/bin/lsinitrd '{}' | egrep '(overlay.ko|aufs.ko|sidus)' | ||
+ | </code> | ||
+ | Normalement apparaissent au moins les sorties : | ||
+ | <code> | ||
- | • Vérification que le démarreur comprend bien les composants demandés | + | -rwxr-xr-x 1 root root 1695 Oct 3 11:46 lib/dracut/hooks/pre-pivot/10-sidus-mount.sh |
- | <code bash> | + | -rw-r--r-- 1 root root 60300 Nov 28 16:22 lib/modules/4.9.0-11-686/kernel/fs/overlayfs/overlay.ko |
- | sidus lsinitrd /boot/initrd.img-*-${ARCH} | egrep '(nfs|overlay)' | + | -rw-r--r-- 1 root root 449800 Nov 28 16:22 lib/modules/4.9.0-11-686/updates/dkms/aufs.ko |
- | $ lib/modules/4.9.0-4-amd64/kernel/fs/overlayfs/overlay.ko | + | |
- | # | + | |
- | sidus lsinitrd /boot/initrd.img-*-${ARCH} | egrep '(aufs)' | + | |
- | $ lib/modules/4.9.0-4-amd64/updates/dkms/aufs.ko | + | |
- | </code> | + | |
+ | </code> | ||
• Suppression du hostname pour le paramétrage automatique du HOST | • Suppression du hostname pour le paramétrage automatique du HOST | ||
Ligne 483: | Ligne 489: | ||
Pour la résolution DNS | Pour la résolution DNS | ||
<code bash> | <code bash> | ||
- | cp /etc/resolv.conf ${SIDUS}/etc/resolv.conf | + | wget -O ${SIDUS}/etc/resolv.conf $HTTP/resolv.conf.sidus |
</code> | </code> | ||
Ligne 504: | Ligne 510: | ||
cp /etc/default/nfs-common ${SIDUS}/etc/default/nfs-common | cp /etc/default/nfs-common ${SIDUS}/etc/default/nfs-common | ||
cp /etc/idmapd.conf ${SIDUS}/etc/idmapd.conf | cp /etc/idmapd.conf ${SIDUS}/etc/idmapd.conf | ||
+ | wget -O ${SIDUS}/etc/fstab $HTTP/fstab | ||
+ | echo -e '#!/bin/bash\n\n# Mount /home folder\nmount /home\n\nexit 0' > ${SIDUS}/etc/rc.local | ||
+ | chmod 755 ${SIDUS}/etc/rc.local | ||
</code> | </code> | ||
Ligne 529: | Ligne 538: | ||
* Pour une architecture amd64 | * Pour une architecture amd64 | ||
<code bash> | <code bash> | ||
- | cp ${SIDUS}/boot/initrd.img-*-${ARCH} /srv/tftp | + | ls ${SIDUS}/boot/initrd* | while read INITRD; do EXTENSION=$(echo ${SIDUS} | awk -F'/' '{ print $NF }'); NEWINITRD=$(echo $INITRD | awk -F'/' '{ print $NF}')@$EXTENSION; cp $INITRD /srv/tftp/$NEWINITRD ; chmod 644 /srv/tftp/$NEWINITRD ; cd /srv/tftp/efi64 ; ln -s ../$NEWINITRD $NEWINITRD ; done |
- | cp ${SIDUS}/boot/vmlinuz-*-${ARCH} /srv/tftp | + | ls ${SIDUS}/boot/vmlinuz* | while read KERNEL; do EXTENSION=$(echo ${SIDUS} | awk -F'/' '{ print $NF }'); NEWKERNEL=$(echo $KERNEL | awk -F'/' '{ print $NF}')@$EXTENSION; cp $KERNEL /srv/tftp/$NEWKERNEL ; chmod 755 /srv/tftp/$NEWKERNEL ; cd /srv/tftp/efi64 ; ln -s ../$NEWKERNEL $NEWKERNEL ; done |
- | chmod 644 /srv/tftp/initrd.img-*-${ARCH} | + | |
- | rename "s/amd64/amd64.sidus/g" /srv/tftp/*${ARCH} | + | |
- | cd /srv/tftp/efi64 | + | |
- | ls ../*${ARCH}.sidus | xargs -I {} sh -c 'export NAME=$(echo "{}" | sed -e "s/\.\.\///g") ; ln -s ../$NAME $NAME' | + | |
</code> | </code> | ||
* Pour une architecture i386 | * Pour une architecture i386 | ||
<code bash> | <code bash> | ||
- | rm /srv/tftp/*[5-6]86* | + | ls ${SIDUS}/boot/initrd* | while read INITRD; do EXTENSION=$(echo ${SIDUS} | awk -F'/' '{ print $NF }'); NEWINITRD=$(echo $INITRD | awk -F'/' '{ print $NF}')@$EXTENSION; cp $INITRD /srv/tftp/$NEWINITRD ; chmod 644 /srv/tftp/$NEWINITRD ; cd /srv/tftp/efi32 ; ln -s ../$NEWINITRD $NEWINITRD ; done |
- | cp ${SIDUS}/boot/initrd.img-*86* /srv/tftp | + | ls ${SIDUS}/boot/vmlinuz* | while read KERNEL; do EXTENSION=$(echo ${SIDUS} | awk -F'/' '{ print $NF }'); NEWKERNEL=$(echo $KERNEL | awk -F'/' '{ print $NF}')@$EXTENSION; cp $KERNEL /srv/tftp/$NEWKERNEL ; chmod 755 /srv/tftp/$NEWKERNEL ; cd /srv/tftp/efi32 ; ln -s ../$NEWKERNEL $NEWKERNEL ; done |
- | cp ${SIDUS}/boot/vmlinuz-*86* /srv/tftp | + | |
- | chmod 644 /srv/tftp/initrd.img-*86* | + | |
- | ls /srv/tftp/*[5-6]86* | xargs -I '{}' mv '{}' '{}'.sidus | + | |
</code> | </code> | ||