Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
projects:livenet:server [2018/03/13 00:03] – [Trivial FTP] nicola | projects:livenet:server [2018/03/13 00:23] – [BUILD IMAGE CLIENT] nicola | ||
---|---|---|---|
Line 66: | Line 66: | ||
cp / | cp / | ||
+ | edit / | ||
+ | < | ||
+ | default menu.c32 | ||
+ | prompt 0 | ||
+ | #timeout 100 | ||
+ | menu title PXE Special Boot Menu | ||
+ | MENU AUTOBOOT Starting Livenet in # seconds | ||
+ | label bootlocal | ||
+ | menu label ^Boot local disk | ||
+ | menu default | ||
+ | | ||
+ | label nfs | ||
+ | menu label Ubuntu 18.04 - diskless | ||
+ | | ||
+ | | ||
+ | label nfs | ||
+ | menu label Ubuntu 14.04 - install | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== BUILD IMAGE CLIENT ==== | ||
+ | zfs create livenet/ | ||
+ | debootstrap --arch amd64 bionic / | ||
+ | |||
+ | cd / | ||
+ | run .... | ||
+ | < | ||
+ | R=bionic | ||
+ | cat > ${R}/ | ||
+ | 127.0.0.1 | ||
+ | ::1 | ||
+ | ff02:: | ||
+ | ff02:: | ||
+ | QWK | ||
+ | |||
+ | chroot ${R} lsb_release -c | awk ' | ||
+ | chroot bionic/ | ||
+ | chroot ${R} apt-get -y -q install locales dialog | ||
+ | chroot ${R} locale-gen en_GB.UTF-8 | ||
+ | chroot ${R} locale-gen it_IT.UTF-8 | ||
+ | chroot ${R} update-locale LANG=it_IT.UTF-8 LANGUAGE=it: | ||
+ | echo Europe/Rome > ${R}/ | ||
+ | cp ${R}/ | ||
+ | cat > ${R}/ | ||
+ | #!/bin/sh | ||
+ | |||
+ | # dpkg/apt not start any daemons when things are installed in the chroot | ||
+ | |||
+ | if [ ! " | ||
+ | exit 101 | ||
+ | fi | ||
+ | QWE | ||
+ | |||
+ | chmod +x ${R}/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | DISTR=bionic | ||
+ | |||
+ | cat > / | ||
+ | ############################################################# | ||
+ | ################### | ||
+ | ############################################################# | ||
+ | ###### Ubuntu Main Repos | ||
+ | deb http:// | ||
+ | ###### Ubuntu Update Repos | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | ###### Ubuntu Partner Repo | ||
+ | deb http:// | ||
+ | QWE | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | apt update apt -y upgrade | ||
+ | apt -y install initramfs-tools | ||
+ | </ | ||
+ | |||
+ | ==== install livenet client package ==== | ||
+ | < | ||
+ | git clone https:// | ||
+ | mv .git / | ||
+ | git status | ||
+ | find / -maxdepth 1 > .gitignore | ||
+ | |||
+ | </ | ||
+ | inside git directory | ||
+ | < | ||
+ | rsync -avb usr/ /usr/ | ||
+ | apt-get -y install linux-generic | ||
+ | </ | ||
+ | |||
+ | ==== etc/ | ||
+ | < | ||
+ | #!/bin/sh -e | ||
+ | # initramfs hook for livenet | ||
+ | #set -x | ||
+ | PREREQ="" | ||
+ | |||
+ | # Output pre-requisites | ||
+ | prereqs() | ||
+ | { | ||
+ | echo " | ||
+ | } | ||
+ | |||
+ | case " | ||
+ | prereqs) | ||
+ | | ||
+ | exit 0 | ||
+ | ;; | ||
+ | esac | ||
+ | |||
+ | . / | ||
+ | |||
+ | rm ${DESTDIR}/ | ||
+ | copy_exec /bin/cpio /bin | ||
+ | |||
+ | mkdir -p ${DESTDIR}/ | ||
+ | cp / | ||
+ | [ -f / | ||
+ | cp / | ||
+ | |||
+ | manual_add_modules aufs | ||
+ | manual_add_modules overlayfs | ||
+ | auto_add_modules net | ||
+ | auto_add_modules nfsv4 | ||
+ | |||
+ | # pulizia di firmware non necessario e pesante | ||
+ | set +e | ||
+ | rm -f ${DESTDIR}/ | ||
+ | set -e | ||
+ | |||
+ | ### qui sotto andrebbe commentato in produzione ### | ||
+ | |||
+ | # tastiera italiana in initram | ||
+ | # attivata da do_debug_shell (loadkeys / | ||
+ | #cp -au / | ||
+ | |||
+ | # nfs4 | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #cp -au / | ||
+ | |||
+ | #cat > ${DESTDIR}/ | ||
+ | # | ||
+ | #EOF | ||
+ | #cat > ${DESTDIR}/ | ||
+ | # | ||
+ | #EOF | ||
+ | |||
+ | # debug purpose ################ | ||
+ | # ricordati di mettere FRAMEBUFFER=n in / | ||
+ | #copy_exec / | ||
+ | #copy_exec /sbin/lsmod /bin | ||
+ | #copy_exec / | ||
+ | ################################# | ||
+ | |||
+ | # wireless ##################### | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec /sbin/iwspy | ||
+ | #copy_exec / | ||
+ | #cp -au / | ||
+ | ################################# | ||
+ | </ | ||
===== DHCP ===== | ===== DHCP ===== |