Compare commits
8 Commits
c2e3f132c4
...
6327caf838
Author | SHA1 | Date |
---|---|---|
|
6327caf838 | |
|
ac768fe195 | |
|
8cb2e08a1d | |
|
ff8c267347 | |
|
76c6d5b9e1 | |
|
b6914dfe8e | |
|
416a6629b3 | |
|
eeefa08af9 |
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,4 +1,15 @@
|
|||
## Release 0.X
|
||||
|
||||
### Removed
|
||||
* No longer download Wheezy release.
|
||||
|
||||
### Bullseye support
|
||||
* Download current Debian Testing
|
||||
* Basic preseed file.
|
||||
* Set new latecommand script (update packages,…).
|
||||
* Add Cinnamon preseed (UEFI + LUKS).
|
||||
* Add Gnome3 preseeds (UEFI + LUKS or UEFI).
|
||||
|
||||
### Improvement
|
||||
* Add an UEFI entry to manage specific partitions (see #16).
|
||||
* task-ssh-server is removed (see #18).
|
||||
|
@ -12,6 +23,7 @@
|
|||
* Update doc about Debian distribution name and remove useless entries (oldStable).
|
||||
* No longer define zsh as default shell for root.
|
||||
* Installation of aptitude, puppet, tmux and zsh move to latecommand script (post.sh).
|
||||
* Upgrade iwlwifi firmware to version 20210315.
|
||||
|
||||
## Release 0.4.1
|
||||
### Improvement
|
||||
|
@ -86,7 +98,7 @@ The code move to Gogs.
|
|||
* scripts/README.md desribe the scripts.
|
||||
* Move Debian Jessie in front of Wheezy.
|
||||
* New preseed files (for Jessie/Wheezy, GUI for minions,…).
|
||||
* New firmares for the initrd : **myricom** and **qlogic**.
|
||||
* New firmwares for the initrd : **myricom** and **qlogic**.
|
||||
* Add a vda disk to allow auto-partition from the preseed file for VM.
|
||||
|
||||
#### Bugfixes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
MENU BACKGROUND /config/debian/debian_background.jpg
|
||||
|
||||
label stableFirmware
|
||||
menu label Debian Buster amd64 Firmwares
|
||||
menu label Debian Buster amd64 ^Firmwares
|
||||
kernel installer/debian/buster/amd64/linux
|
||||
append vga=normal initrd=installer/debian/buster/amd64/initrd_firm.xz -- quiet
|
||||
label stableAuto
|
||||
|
@ -24,10 +24,38 @@ label stableGnomeCrypto
|
|||
kernel installer/debian/buster/amd64/linux
|
||||
IPAPPEND 2
|
||||
APPEND vga=normal initrd=installer/debian/buster/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/buster/preseed.gnome.uefi.cipher.cfg
|
||||
|
||||
label separator
|
||||
menu label ---
|
||||
label testingFirmware
|
||||
menu label Debian Bullseye amd64 Firmwares
|
||||
kernel installer/debian/bullseye/amd64/linux
|
||||
append vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.xz -- quiet
|
||||
label testingAuto
|
||||
menu label Debian Bu^llseye amd64 PRESEED
|
||||
kernel installer/debian/bullseye/amd64/linux
|
||||
IPAPPEND 2
|
||||
append vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/bullseye/preseed.cfg
|
||||
label testingGnomeCrypto
|
||||
menu label Debian Bullseye Gnome3 + UEFI + Cipher WITH PRESEED
|
||||
kernel installer/debian/bullseye/amd64/linux
|
||||
IPAPPEND 2
|
||||
APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/bullseye/preseed.gnome.uefi.cipher.cfg
|
||||
label testingCinnamonCrypto
|
||||
menu label Debian Bullseye Cinnamon + UEFI + Cipher WITH PRESEED
|
||||
kernel installer/debian/bullseye/amd64/linux
|
||||
IPAPPEND 2
|
||||
APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/bullseye/preseed.cinnamon.uefi.cipher.cfg
|
||||
label testingGnome
|
||||
menu label Debian Bullseye Gnome3 + UEFI WITH PRESEED
|
||||
kernel installer/debian/bullseye/amd64/linux
|
||||
IPAPPEND 2
|
||||
APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/bullseye/preseed.gnome.uefi.cfg
|
||||
|
||||
label separator
|
||||
menu label ---
|
||||
label oldstableFirmware
|
||||
menu label Debian stretch amd64 ^Firmwares
|
||||
menu label Debian stretch amd64 Firmwares
|
||||
kernel installer/debian/stretch/amd64/linux
|
||||
append vga=normal initrd=installer/debian/stretch/amd64/initrd_firm.xz -- quiet
|
||||
label oldstableAuto
|
||||
|
@ -45,14 +73,15 @@ label oldstableComputeNode
|
|||
kernel installer/debian/stretch/amd64/linux
|
||||
IPAPPEND 2
|
||||
append vga=normal initrd=installer/debian/stretch/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/stretch/preseed_computenode.cfg
|
||||
|
||||
label separator
|
||||
menu label ---
|
||||
label oldoldstableFirmware
|
||||
menu label Debian jessie amd64 ^Firmwares
|
||||
menu label Debian jessie amd64 Firmwares
|
||||
kernel installer/debian/jessie/amd64/linux
|
||||
append vga=normal initrd=installer/debian/jessie/amd64/initrd_firm.xz -- quiet
|
||||
label oldoldstableAuto
|
||||
menu label Debian jessie amd64 ^PRESEED
|
||||
menu label Debian jessie amd64 PRESEED
|
||||
kernel installer/debian/jessie/amd64/linux
|
||||
IPAPPEND 2
|
||||
append vga=normal initrd=installer/debian/jessie/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/jessie/preseed.cfg
|
||||
|
@ -60,6 +89,7 @@ label oldoldstableI386
|
|||
menu label Debian jessie ^i386
|
||||
kernel installer/debian/jessie/i386/linux
|
||||
append vga=normal initrd=installer/debian/jessie/i386/initrd.gz -- quiet
|
||||
|
||||
label separator
|
||||
menu label ---
|
||||
label unstableAmd64
|
||||
|
@ -75,6 +105,7 @@ label unstableCrypt
|
|||
kernel installer/debian/sid/amd64/linux
|
||||
IPAPPEND 2
|
||||
APPEND vga=normal initrd=installer/debian/sid/amd64/initrd_firm.xz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/preseed/debian/sid/preseed.uefi.luks.btrfs.cfg
|
||||
|
||||
label separator
|
||||
menu label ---
|
||||
label mainmenu
|
||||
|
|
|
@ -0,0 +1,381 @@
|
|||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
#
|
||||
## Howto use [[[
|
||||
######################################################################
|
||||
|
||||
## With a PXE boot:
|
||||
#label bullseye
|
||||
# menu label Debian GNU/Linux ^Bullseye 64 bits WITH PRESEED
|
||||
# kernel installer/debian/bullseye/amd64/linux
|
||||
# IPAPPEND 2
|
||||
# APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/installer/debian/bullseye/amd64/preseed.cfg
|
||||
|
||||
################################################################## ]]]
|
||||
## Localization [[[
|
||||
######################################################################
|
||||
|
||||
## Install Time
|
||||
### Preseeding only locale sets language, country and locale.
|
||||
#d-i debian-installer/locale string en_US
|
||||
|
||||
## The values can also be preseeded individually for greater flexibility.
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string FR
|
||||
d-i debian-installer/locale select en_US.UTF-8
|
||||
d-i debian-installer/fallbacklocale select en_US.UTF-8
|
||||
d-i localechooser/supported-locales multiselect fr_FR.UTF-8
|
||||
d-i debian-installer/keymap string fr-latin9
|
||||
|
||||
## Choose language
|
||||
d-i localechooser/languagelist select en
|
||||
|
||||
## Choose keyboard configuration
|
||||
d-i console-tools/archs string skip-config
|
||||
d-i console-keymaps-at/keymap select fr-latin9
|
||||
d-i keyboard-configuration/xkb-keymap select French
|
||||
|
||||
################################################################## ]]]
|
||||
## Network configuration [[[
|
||||
######################################################################
|
||||
|
||||
## Auto-configure networking
|
||||
d-i netcfg/use_autoconfig boolean true
|
||||
|
||||
# Disable that annoying WEP key dialog.
|
||||
d-i netcfg/wireless_wep string
|
||||
|
||||
## To set a different link detection timeout (default is 3 seconds).
|
||||
## Values are interpreted as seconds.
|
||||
d-i netcfg/link_detection_timeout string 20
|
||||
d-i netcfg/link_wait_timeout string 3
|
||||
|
||||
## If you have a slow dhcp server and the installer times out waiting for
|
||||
## it, this might be useful.
|
||||
d-i netcfg/dhcp_timeout string 60
|
||||
d-i netcfg/dhcpv6_timeout string 1
|
||||
|
||||
## Network Configuration
|
||||
d-i netcfg/get_hostname string unassigned-hostname
|
||||
d-i netcfg/get_domain string unassigned-domain
|
||||
|
||||
## If non-free firmware is needed for the network or other hardware, you can
|
||||
## configure the installer to always try to load it, without prompting. Or
|
||||
## change to false to disable asking.
|
||||
d-i hw-detect/load_firmware boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Remote install (Manual) [[[
|
||||
######################################################################
|
||||
|
||||
## Use the following settings if you wish to make use of the network-console
|
||||
## component for remote installation over SSH. This only makes sense if you
|
||||
## intend to perform the remainder of the installation manually.
|
||||
#d-i anna/choose_modules string network-console
|
||||
#d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
|
||||
#d-i network-console/password password r00tme
|
||||
#d-i network-console/password-again password r00tme
|
||||
|
||||
################################################################## ]]]
|
||||
## Mirror settings [[[
|
||||
######################################################################
|
||||
|
||||
## Mirror
|
||||
d-i mirror/country string FR
|
||||
d-i mirror/http/hostname string ftp.fr.debian.org
|
||||
d-i mirror/http/directory string /debian/
|
||||
d-i mirror/http/proxy string
|
||||
d-i mirror/http/mirror string ftp.fr.debian.org
|
||||
d-i mirror/suite string
|
||||
|
||||
################################################################## ]]]
|
||||
## Account [[[
|
||||
######################################################################
|
||||
|
||||
## Enable shadow passwords
|
||||
d-i passwd/shadow boolean true
|
||||
|
||||
## Allow login as root?
|
||||
d-i passwd/root-login boolean true
|
||||
|
||||
## Root password in clear text
|
||||
#d-i passwd/root-password password r00tme
|
||||
#d-i passwd/root-password-again password r00tme
|
||||
## ... or encrypted with {MD5, SHA512, …) hash
|
||||
d-i passwd/root-password-crypted password $6$ceGTxMxc$gXajYByJna1cfTjaST3TcF0FfrlSAaEcmCiOMq/DBOuD0tlu8VYQosZPgwcFT4bCuODMErU/fgRxZEeu9c10V0
|
||||
|
||||
## Create a normal user account now?
|
||||
d-i passwd/make-user boolean false
|
||||
|
||||
## User name
|
||||
#d-i passwd/user-fullname string bob
|
||||
#d-i passwd/username string bob
|
||||
## User password in clear text
|
||||
#d-i passwd/user-password password insecure
|
||||
#d-i passwd/user-password-again password insecure
|
||||
## ... or encrypted with MD5 hash
|
||||
#d-i passwd/user-password-crypted password $1$098f6bcd4621d373cade4e832627b4f6
|
||||
|
||||
## Set User UID
|
||||
#d-i passwd/user-uid string 1000
|
||||
|
||||
################################################################## ]]]
|
||||
## Clock and time zone setup [[[
|
||||
######################################################################
|
||||
|
||||
## Material clock on UTC
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string Europe/Paris
|
||||
|
||||
## Use NTP to set time
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org
|
||||
|
||||
################################################################## ]]]
|
||||
## Disk Partitioning/Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## If the system has only one disk the installer will default to using it.
|
||||
## Otherwise, the device name must be given
|
||||
d-i partman-auto/disk string /dev/nvme0n1 /dev/sda /dev/vda
|
||||
|
||||
d-i partman-auto/init_automatically_partition select custom
|
||||
|
||||
## Specify the method to use
|
||||
### - regular: use the usual partition types for the architecture
|
||||
### - lvm: use LVM to partition the disk
|
||||
### - crypto: use LVM within an encrypted partition
|
||||
d-i partman-auto/method string lvm
|
||||
|
||||
## It's not ok to have /boot in the LVM
|
||||
d-i partman-auto-lvm/no_boot boolean false
|
||||
|
||||
## Remove old LVM configuration
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
d-i partman-lvm/device_remove_lvm_span boolean true
|
||||
d-i partman-auto/purge_lvm_from_device boolean true
|
||||
|
||||
## Remove old RAID configuration
|
||||
#d-i partman-md/device_remove_md boolean true
|
||||
d-i partman-md/confirm boolean true
|
||||
|
||||
## Confirm to write the LVM partitions
|
||||
d-i partman-lvm/confirm boolean true
|
||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
|
||||
## Volume Group/vg name
|
||||
d-i partman-auto-lvm/new_vg_name string sys
|
||||
### From buster, need to specify the expected size
|
||||
d-i partman-auto-lvm/guided_size string max
|
||||
|
||||
## LVM partition
|
||||
### This recipe need almost 30Gb free space.
|
||||
d-i partman-auto/expert_recipe string \
|
||||
boot-root :: \
|
||||
200 200000 400 ext3 \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
label{ boot } \
|
||||
mountpoint{ /boot } \
|
||||
. \
|
||||
16000 100000 -1 ext4 \
|
||||
$defaultignore{ } \
|
||||
$primary{ } \
|
||||
method{ lvm } \
|
||||
vg_name{ sys } \
|
||||
. \
|
||||
1000 8000 2000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_root } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ root } \
|
||||
mountpoint{ / } \
|
||||
. \
|
||||
4000 7000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_usr } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ usr } \
|
||||
mountpoint{ /usr } \
|
||||
. \
|
||||
4000 6000 8000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_var } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ var } \
|
||||
mountpoint{ /var } \
|
||||
. \
|
||||
1000 5000 2000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_tmp } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
options/nosuid{ nosuid } \
|
||||
label{ tmp } \
|
||||
mountpoint{ /tmp } \
|
||||
. \
|
||||
2000 4000 3000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_home } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ home } \
|
||||
mountpoint{ /home } \
|
||||
. \
|
||||
512 3000 2000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_srv } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ srv } \
|
||||
mountpoint{ /srv } \
|
||||
. \
|
||||
512 2000 4000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_opt } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ opt } \
|
||||
mountpoint{ /opt } \
|
||||
. \
|
||||
512 1000 100% linux-swap \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_swap } \
|
||||
method{ swap } format{ } \
|
||||
. \
|
||||
100 100 -1 ext3 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_free } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
label{ free } \
|
||||
mountpoint{ /mnt/free } \
|
||||
.
|
||||
## Need to put all free space in a temp logical volume/partition
|
||||
## Otherwise it's the last partition which get all free space
|
||||
|
||||
## Allow to not set a swap partition
|
||||
#d-i partman-basicfilesystems/no_swap boolean false
|
||||
|
||||
## Return to menu if no mount point is assigned to a filesystem
|
||||
d-i partman-basicfilesystems/no_mount_point boolean false
|
||||
|
||||
## Automatically partition without confirmation
|
||||
d-i partman/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select finish
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Kernel [[[
|
||||
######################################################################
|
||||
|
||||
## Kernel to install
|
||||
d-i base-installer/kernel/image select linux-image-amd64
|
||||
|
||||
## Drivers to include in the initrd
|
||||
d-i base-installer/initramfs-tools/driver-policy select most
|
||||
|
||||
################################################################## ]]]
|
||||
## APT configuration // Package selection [[[
|
||||
######################################################################
|
||||
|
||||
## Post install APT setup
|
||||
d-i apt-setup/uri_type select d-i
|
||||
d-i apt-setup/hostname string ftp.fr.debian.org
|
||||
d-i apt-setup/directory string /debian/
|
||||
d-i apt-setup/another boolean false
|
||||
d-i apt-setup/security-updates boolean false
|
||||
d-i apt-setup/services-select multiselect security
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
d-i apt-setup/enable-source-repositories boolean true
|
||||
|
||||
## Ensure to use a network mirror
|
||||
### Set to false for an offline installation
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
|
||||
## Choose packages
|
||||
tasksel tasksel/first multiselect ssh-server
|
||||
|
||||
## Individual additional packages to install
|
||||
### tftp-hpa to download an archive (see preseed/late_command at the end of this file)
|
||||
d-i pkgsel/include string tftp-hpa
|
||||
|
||||
## Whether to upgrade packages after debootstrap.
|
||||
### Allowed values: none, safe-upgrade, full-upgrade
|
||||
d-i pkgsel/upgrade select full-upgrade
|
||||
|
||||
## Participate to Popularity Contest (disable for an unconnected server)
|
||||
d-i popularity-contest/participate boolean true
|
||||
|
||||
## For CD/DVD case
|
||||
### Don't scan for additional CD/DVD
|
||||
d-i apt-setup/cdrom/set-first boolean false
|
||||
d-i apt-setup/cdrom/set-double boolean false
|
||||
d-i apt-setup/cdrom/set-next boolean false
|
||||
d-i apt-setup/cdrom/set-failed boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## Grub is the default boot loader (for x86). If you want lilo installed
|
||||
## instead, uncomment this:
|
||||
#d-i grub-installer/skip boolean true
|
||||
## To also skip installing lilo, and install no bootloader, uncomment this too:
|
||||
#d-i lilo-installer/skip boolean true
|
||||
|
||||
## This is fairly safe to set, it makes grub install automatically to the MBR
|
||||
## if no other operating system is detected on the machine.
|
||||
d-i grub-installer/only_debian boolean true
|
||||
|
||||
## This one makes grub-installer install to the MBR if it also finds some other
|
||||
## OS, which is less safe as it might not be able to boot that other OS.
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
|
||||
## Since Debian Jessie, the d-i will ask to specify the device for Grub.
|
||||
## Should use 'default', to use the default system disk
|
||||
### Fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737
|
||||
d-i grub-installer/bootdev string default
|
||||
|
||||
## Don't force GRUB installation to the EFI removable media path
|
||||
d-i grub-installer/force-efi-extra-removable boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Finishing up the installation [[[
|
||||
######################################################################
|
||||
|
||||
## Avoid that last message about the install being complete.
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i prebaseconfig/reboot_in_progress note
|
||||
|
||||
## This will prevent the installer from ejecting the CD during the reboot,
|
||||
## which is useful in some situations.
|
||||
d-i cdrom-detect/eject boolean false
|
||||
|
||||
## This is how to make the installer shutdown when finished, but not
|
||||
## reboot into the installed system.
|
||||
#d-i debian-installer/exit/halt boolean true
|
||||
|
||||
## This will power off the machine instead of just halting it.
|
||||
#d-i debian-installer/exit/poweroff boolean true
|
||||
|
||||
## Execute some last commands
|
||||
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
|
||||
d-i preseed/late_command string in-target umount /dev/sys/lv_free ; \
|
||||
lvremove -f /dev/sys/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.bullseye.sh
|
||||
################################################################## ]]]
|
|
@ -0,0 +1,384 @@
|
|||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
#
|
||||
## Howto use [[[
|
||||
######################################################################
|
||||
|
||||
## With a PXE boot:
|
||||
#label BullseyeCinnamonCrypto
|
||||
# menu label Debian Bullseye ^Cinnamon + UEFI + Cipher WITH PRESEED
|
||||
# kernel installer/debian/bullseye/amd64/linux
|
||||
# IPAPPEND 2
|
||||
# APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/installer/debian/bullseye/amd64/preseed.cinnamon.uefi.cipher.cfg
|
||||
|
||||
################################################################## ]]]
|
||||
## Localization [[[
|
||||
######################################################################
|
||||
|
||||
## Install Time
|
||||
### Preseeding only locale sets language, country and locale.
|
||||
#d-i debian-installer/locale string en_US
|
||||
|
||||
## The values can also be preseeded individually for greater flexibility.
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string FR
|
||||
d-i debian-installer/locale select en_US.UTF-8
|
||||
d-i debian-installer/fallbacklocale select en_US.UTF-8
|
||||
d-i localechooser/supported-locales multiselect fr_FR.UTF-8
|
||||
d-i debian-installer/keymap string fr-latin9
|
||||
|
||||
## Choose language
|
||||
d-i localechooser/languagelist select en
|
||||
|
||||
## Choose keyboard configuration
|
||||
d-i console-tools/archs string skip-config
|
||||
d-i console-keymaps-at/keymap select fr-latin9
|
||||
d-i keyboard-configuration/xkb-keymap select French
|
||||
|
||||
################################################################## ]]]
|
||||
## Network configuration [[[
|
||||
######################################################################
|
||||
|
||||
## Auto-configure networking
|
||||
d-i netcfg/use_autoconfig boolean true
|
||||
|
||||
# Disable that annoying WEP key dialog.
|
||||
d-i netcfg/wireless_wep string
|
||||
|
||||
## To set a different link detection timeout (default is 3 seconds).
|
||||
## Values are interpreted as seconds.
|
||||
d-i netcfg/link_detection_timeout string 20
|
||||
d-i netcfg/link_wait_timeout string 3
|
||||
|
||||
## If you have a slow dhcp server and the installer times out waiting for
|
||||
## it, this might be useful.
|
||||
d-i netcfg/dhcp_timeout string 60
|
||||
d-i netcfg/dhcpv6_timeout string 1
|
||||
|
||||
## Network Configuration
|
||||
d-i netcfg/get_hostname string unassigned-hostname
|
||||
d-i netcfg/get_domain string unassigned-domain
|
||||
|
||||
## If non-free firmware is needed for the network or other hardware, you can
|
||||
## configure the installer to always try to load it, without prompting. Or
|
||||
## change to false to disable asking.
|
||||
d-i hw-detect/load_firmware boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Remote install (Manual) [[[
|
||||
######################################################################
|
||||
|
||||
## Use the following settings if you wish to make use of the network-console
|
||||
## component for remote installation over SSH. This only makes sense if you
|
||||
## intend to perform the remainder of the installation manually.
|
||||
#d-i anna/choose_modules string network-console
|
||||
#d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
|
||||
#d-i network-console/password password r00tme
|
||||
#d-i network-console/password-again password r00tme
|
||||
|
||||
################################################################## ]]]
|
||||
## Mirror settings [[[
|
||||
######################################################################
|
||||
|
||||
## Mirror
|
||||
d-i mirror/country string FR
|
||||
d-i mirror/http/hostname string ftp.fr.debian.org
|
||||
d-i mirror/http/directory string /debian/
|
||||
d-i mirror/http/proxy string
|
||||
d-i mirror/http/mirror string ftp.fr.debian.org
|
||||
d-i mirror/suite string
|
||||
|
||||
################################################################## ]]]
|
||||
## Account [[[
|
||||
######################################################################
|
||||
|
||||
## Enable shadow passwords
|
||||
d-i passwd/shadow boolean true
|
||||
|
||||
## Allow login as root?
|
||||
d-i passwd/root-login boolean true
|
||||
|
||||
## Root password in clear text
|
||||
#d-i passwd/root-password password r00tme
|
||||
#d-i passwd/root-password-again password r00tme
|
||||
## ... or encrypted with {MD5, SHA512, …) hash
|
||||
d-i passwd/root-password-crypted password $6$ceGTxMxc$gXajYByJna1cfTjaST3TcF0FfrlSAaEcmCiOMq/DBOuD0tlu8VYQosZPgwcFT4bCuODMErU/fgRxZEeu9c10V0
|
||||
|
||||
## Create a normal user account now?
|
||||
d-i passwd/make-user boolean false
|
||||
|
||||
## User name
|
||||
#d-i passwd/user-fullname string bob
|
||||
#d-i passwd/username string bob
|
||||
## User password in clear text
|
||||
#d-i passwd/user-password password insecure
|
||||
#d-i passwd/user-password-again password insecure
|
||||
## ... or encrypted with MD5 hash
|
||||
#d-i passwd/user-password-crypted password $1$098f6bcd4621d373cade4e832627b4f6
|
||||
|
||||
## Set User UID
|
||||
#d-i passwd/user-uid string 1000
|
||||
|
||||
################################################################## ]]]
|
||||
## Clock and time zone setup [[[
|
||||
######################################################################
|
||||
|
||||
## Material clock on UTC
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string Europe/Paris
|
||||
|
||||
## Use NTP to set time
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string ntp.univ-rennes1.fr
|
||||
|
||||
################################################################## ]]]
|
||||
## Disk Partitioning/Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## If the system has only one disk the installer will default to using it.
|
||||
## Otherwise, the device name must be given
|
||||
d-i partman-auto/disk string /dev/nvme0n1 /dev/sda /dev/vda
|
||||
|
||||
d-i partman-auto/init_automatically_partition select custom
|
||||
|
||||
## Specify the method to use
|
||||
### - regular: use the usual partition types for the architecture
|
||||
### - lvm: use LVM to partition the disk
|
||||
### - crypto: use LVM within an encrypted partition
|
||||
d-i partman-auto/method string crypto
|
||||
|
||||
## It's not ok to have /boot in the LVM
|
||||
d-i partman-auto-lvm/no_boot boolean false
|
||||
|
||||
## Remove old LVM configuration
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
d-i partman-lvm/device_remove_lvm_span boolean true
|
||||
d-i partman-auto/purge_lvm_from_device boolean true
|
||||
|
||||
## Remove old RAID configuration
|
||||
d-i partman-md/device_remove_md boolean true
|
||||
d-i partman-md/confirm boolean true
|
||||
|
||||
## Confirm to write the LVM partitions
|
||||
d-i partman-lvm/confirm boolean true
|
||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
|
||||
## Keep that one set to true so we end up with a UEFI enabled
|
||||
## system. If set to false, /var/lib/partman/uefi_ignore will be touched
|
||||
d-i partman-efi/non_efi_system boolean true
|
||||
|
||||
## Enforce usage of GPT - a must have to use EFI!
|
||||
d-i partman-basicfilesystems/choose_label string gpt
|
||||
d-i partman-basicfilesystems/default_label string gpt
|
||||
d-i partman-partitioning/choose_label string gpt
|
||||
d-i partman-partitioning/default_label string gpt
|
||||
d-i partman/choose_label string gpt
|
||||
d-i partman/default_label string gpt
|
||||
|
||||
## Volume Group/vg
|
||||
d-i partman-auto-lvm/new_vg_name string crypt
|
||||
|
||||
### From Buster, need to specify the expected size
|
||||
d-i partman-auto-lvm/guided_size string max
|
||||
|
||||
d-i partman-auto/choose_recipe select root-encrypted
|
||||
d-i partman-auto/expert_recipe string \
|
||||
root-encrypted :: \
|
||||
538 300000 1075 free \
|
||||
$iflabel{ gpt } \
|
||||
$reusemethod{ } \
|
||||
method{ efi } \
|
||||
format{ } \
|
||||
. \
|
||||
200 200000 400 ext3 \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
mountpoint{ /boot } \
|
||||
. \
|
||||
1000 8000 3000 ext4 \
|
||||
$lvmok{ } \
|
||||
$primary{ } \
|
||||
lv_name{ lv_root } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ root } \
|
||||
mountpoint{ / } \
|
||||
. \
|
||||
4000 7000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_usr } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ usr } \
|
||||
mountpoint{ /usr } \
|
||||
. \
|
||||
4000 6000 8000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_var } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ var } \
|
||||
mountpoint{ /var } \
|
||||
. \
|
||||
1000 5000 2000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_tmp } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
options/nosuid{ nosuid } \
|
||||
label{ tmp } \
|
||||
mountpoint{ /tmp } \
|
||||
. \
|
||||
2000 4000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_home } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ home } \
|
||||
mountpoint{ /home } \
|
||||
. \
|
||||
512 3000 4000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_opt } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ opt } \
|
||||
mountpoint{ /opt } \
|
||||
. \
|
||||
512 1000 100% linux-swap \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_swap } \
|
||||
method{ swap } format{ } \
|
||||
. \
|
||||
100 100 -1 ext3 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_free } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
label{ free } \
|
||||
mountpoint{ /mnt/free } \
|
||||
.
|
||||
## Need to put all free space in a temp logical volume/partition
|
||||
## Otherwise it's the last partition which get all free space
|
||||
|
||||
## Allow to not set a swap partition
|
||||
#d-i partman-basicfilesystems/no_swap boolean false
|
||||
|
||||
## Return to menu if no mount point is assigned to a filesystem
|
||||
d-i partman-basicfilesystems/no_mount_point boolean false
|
||||
|
||||
## Automatically partition without confirmation
|
||||
d-i partman/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select finish
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Kernel [[[
|
||||
######################################################################
|
||||
|
||||
## Kernel to install
|
||||
d-i base-installer/kernel/image select linux-image-amd64
|
||||
|
||||
## Drivers to include in the initrd
|
||||
d-i base-installer/initramfs-tools/driver-policy select most
|
||||
|
||||
################################################################## ]]]
|
||||
## APT configuration // Package selection [[[
|
||||
######################################################################
|
||||
|
||||
## Post install APT setup
|
||||
d-i apt-setup/uri_type select d-i
|
||||
d-i apt-setup/hostname string ftp.fr.debian.org
|
||||
d-i apt-setup/directory string /debian/
|
||||
d-i apt-setup/another boolean false
|
||||
d-i apt-setup/security-updates boolean false
|
||||
d-i apt-setup/services-select multiselect security
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
d-i apt-setup/enable-source-repositories boolean true
|
||||
|
||||
## Ensure to use a network mirror
|
||||
### Set to false for an offline installation
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
|
||||
## Choose packages
|
||||
tasksel tasksel/first multiselect ssh-server standard cinnamon-desktop
|
||||
|
||||
## Individual additional packages to install
|
||||
### tftp-hpa to download an archive (see preseed/late_command at the end of this file)
|
||||
d-i pkgsel/include string tftp-hpa
|
||||
|
||||
## Whether to upgrade packages after debootstrap.
|
||||
### Allowed values: none, safe-upgrade, full-upgrade
|
||||
d-i pkgsel/upgrade select full-upgrade
|
||||
|
||||
## Participate to Popularity Contest (disable for an unconnected server)
|
||||
d-i popularity-contest/participate boolean true
|
||||
|
||||
## For CD/DVD case
|
||||
### Don't scan for additional CD/DVD
|
||||
d-i apt-setup/cdrom/set-first boolean false
|
||||
d-i apt-setup/cdrom/set-double boolean false
|
||||
d-i apt-setup/cdrom/set-next boolean false
|
||||
d-i apt-setup/cdrom/set-failed boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## Grub is the default boot loader (for x86). If you want lilo installed
|
||||
## instead, uncomment this:
|
||||
#d-i grub-installer/skip boolean true
|
||||
## To also skip installing lilo, and install no bootloader, uncomment this too:
|
||||
#d-i lilo-installer/skip boolean true
|
||||
|
||||
## This is fairly safe to set, it makes grub install automatically to the MBR
|
||||
## if no other operating system is detected on the machine.
|
||||
d-i grub-installer/only_debian boolean true
|
||||
|
||||
## This one makes grub-installer install to the MBR if it also finds some other
|
||||
## OS, which is less safe as it might not be able to boot that other OS.
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
|
||||
## Since Debian Jessie, the d-i will ask to specify the device for Grub.
|
||||
## Should use 'default', to use the default system disk
|
||||
### Fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737
|
||||
d-i grub-installer/bootdev string default
|
||||
|
||||
## Don't force GRUB installation to the EFI removable media path
|
||||
d-i grub-installer/force-efi-extra-removable boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Finishing up the installation [[[
|
||||
######################################################################
|
||||
|
||||
## Avoid that last message about the install being complete.
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i prebaseconfig/reboot_in_progress note
|
||||
|
||||
## This will prevent the installer from ejecting the CD during the reboot,
|
||||
## which is useful in some situations.
|
||||
d-i cdrom-detect/eject boolean false
|
||||
|
||||
## This is how to make the installer shutdown when finished, but not
|
||||
## reboot into the installed system.
|
||||
#d-i debian-installer/exit/halt boolean true
|
||||
|
||||
## This will power off the machine instead of just halting it.
|
||||
#d-i debian-installer/exit/poweroff boolean true
|
||||
|
||||
## Execute some last commands
|
||||
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
|
||||
d-i preseed/late_command string in-target umount /dev/crypt/lv_free ; \
|
||||
lvremove -f /dev/crypt/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.bullseye.sh
|
||||
################################################################## ]]]
|
|
@ -0,0 +1,385 @@
|
|||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
#
|
||||
## Howto use [[[
|
||||
######################################################################
|
||||
|
||||
## With a PXE boot:
|
||||
#label BullseyeGnome
|
||||
# menu label Debian Bullseye ^Gnome + UEFI WITH PRESEED
|
||||
# kernel installer/debian/bullseye/amd64/linux
|
||||
# IPAPPEND 2
|
||||
# APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/installer/debian/bullseye/amd64/preseed.gnome.uefi.cfg
|
||||
|
||||
################################################################## ]]]
|
||||
## Localization [[[
|
||||
######################################################################
|
||||
|
||||
## Install Time
|
||||
### Preseeding only locale sets language, country and locale.
|
||||
#d-i debian-installer/locale string en_US
|
||||
|
||||
## The values can also be preseeded individually for greater flexibility.
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string FR
|
||||
d-i debian-installer/locale select en_US.UTF-8
|
||||
d-i debian-installer/fallbacklocale select en_US.UTF-8
|
||||
d-i localechooser/supported-locales multiselect fr_FR.UTF-8
|
||||
d-i debian-installer/keymap string fr-latin9
|
||||
|
||||
## Choose language
|
||||
d-i localechooser/languagelist select en
|
||||
|
||||
## Choose keyboard configuration
|
||||
d-i console-tools/archs string skip-config
|
||||
d-i console-keymaps-at/keymap select fr-latin9
|
||||
d-i keyboard-configuration/xkb-keymap select French
|
||||
|
||||
################################################################## ]]]
|
||||
## Network configuration [[[
|
||||
######################################################################
|
||||
|
||||
## Auto-configure networking
|
||||
d-i netcfg/use_autoconfig boolean true
|
||||
|
||||
# Disable that annoying WEP key dialog.
|
||||
d-i netcfg/wireless_wep string
|
||||
|
||||
## To set a different link detection timeout (default is 3 seconds).
|
||||
## Values are interpreted as seconds.
|
||||
d-i netcfg/link_detection_timeout string 20
|
||||
d-i netcfg/link_wait_timeout string 3
|
||||
|
||||
## If you have a slow dhcp server and the installer times out waiting for
|
||||
## it, this might be useful.
|
||||
d-i netcfg/dhcp_timeout string 60
|
||||
d-i netcfg/dhcpv6_timeout string 1
|
||||
|
||||
## Network Configuration
|
||||
d-i netcfg/get_hostname string unassigned-hostname
|
||||
d-i netcfg/get_domain string unassigned-domain
|
||||
|
||||
## If non-free firmware is needed for the network or other hardware, you can
|
||||
## configure the installer to always try to load it, without prompting. Or
|
||||
## change to false to disable asking.
|
||||
d-i hw-detect/load_firmware boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Remote install (Manual) [[[
|
||||
######################################################################
|
||||
|
||||
## Use the following settings if you wish to make use of the network-console
|
||||
## component for remote installation over SSH. This only makes sense if you
|
||||
## intend to perform the remainder of the installation manually.
|
||||
#d-i anna/choose_modules string network-console
|
||||
#d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
|
||||
#d-i network-console/password password r00tme
|
||||
#d-i network-console/password-again password r00tme
|
||||
|
||||
################################################################## ]]]
|
||||
## Mirror settings [[[
|
||||
######################################################################
|
||||
|
||||
## Mirror
|
||||
d-i mirror/country string FR
|
||||
d-i mirror/http/hostname string ftp.fr.debian.org
|
||||
d-i mirror/http/directory string /debian/
|
||||
d-i mirror/http/proxy string
|
||||
d-i mirror/http/mirror string ftp.fr.debian.org
|
||||
d-i mirror/suite string
|
||||
|
||||
################################################################## ]]]
|
||||
## Account [[[
|
||||
######################################################################
|
||||
|
||||
## Enable shadow passwords
|
||||
d-i passwd/shadow boolean true
|
||||
|
||||
## Allow login as root?
|
||||
d-i passwd/root-login boolean true
|
||||
|
||||
## Root password in clear text
|
||||
#d-i passwd/root-password password r00tme
|
||||
#d-i passwd/root-password-again password r00tme
|
||||
## ... or encrypted with {MD5, SHA512, …) hash
|
||||
d-i passwd/root-password-crypted password $6$ceGTxMxc$gXajYByJna1cfTjaST3TcF0FfrlSAaEcmCiOMq/DBOuD0tlu8VYQosZPgwcFT4bCuODMErU/fgRxZEeu9c10V0
|
||||
|
||||
## Create a normal user account now?
|
||||
d-i passwd/make-user boolean false
|
||||
|
||||
## User name
|
||||
#d-i passwd/user-fullname string bob
|
||||
#d-i passwd/username string bob
|
||||
## User password in clear text
|
||||
#d-i passwd/user-password password insecure
|
||||
#d-i passwd/user-password-again password insecure
|
||||
## ... or encrypted with MD5 hash
|
||||
#d-i passwd/user-password-crypted password $1$098f6bcd4621d373cade4e832627b4f6
|
||||
|
||||
## Set User UID
|
||||
#d-i passwd/user-uid string 1000
|
||||
|
||||
################################################################## ]]]
|
||||
## Clock and time zone setup [[[
|
||||
######################################################################
|
||||
|
||||
## Material clock on UTC
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string Europe/Paris
|
||||
|
||||
## Use NTP to set time
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org
|
||||
|
||||
################################################################## ]]]
|
||||
## Disk Partitioning/Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
# If the system has only one disk the installer will default to using it.
|
||||
# Otherwise, the device name must be given
|
||||
d-i partman-auto/disk string /dev/sda /dev/vda /dev/nvme0n1
|
||||
|
||||
d-i partman-auto/init_automatically_partition select custom
|
||||
|
||||
# Specify the method to use
|
||||
# - regular: use the usual partition types for the architecture
|
||||
# - lvm: use LVM to partition the disk
|
||||
# - crypto: use LVM within an encrypted partition
|
||||
#d-i partman-auto/method string regular
|
||||
d-i partman-auto/method string lvm
|
||||
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
|
||||
# It's ok to have /boot in the LVM
|
||||
d-i partman-auto-lvm/no_boot boolean false
|
||||
|
||||
# Remove old LVM configuration
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
d-i partman-lvm/device_remove_lvm_span boolean true
|
||||
d-i partman-auto/purge_lvm_from_device boolean true
|
||||
# Remove old RAID configuration
|
||||
#d-i partman-md/device_remove_md boolean true
|
||||
# Confirm to write the LVM partitions
|
||||
d-i partman-lvm/confirm boolean true
|
||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
|
||||
# Keep that one set to true so we end up with a UEFI enabled
|
||||
# system. If set to false, /var/lib/partman/uefi_ignore will be touched
|
||||
d-i partman-efi/non_efi_system boolean true
|
||||
|
||||
# enforce usage of GPT - a must have to use EFI!
|
||||
d-i partman-basicfilesystems/choose_label string gpt
|
||||
d-i partman-basicfilesystems/default_label string gpt
|
||||
d-i partman-partitioning/choose_label string gpt
|
||||
d-i partman-partitioning/default_label string gpt
|
||||
d-i partman/choose_label string gpt
|
||||
d-i partman/default_label string gpt
|
||||
|
||||
# LVM partition
|
||||
# This recipe need almost 30Gb free space it's add all <min size>
|
||||
# sda2 (16Gb), lv_* (~14Gb) then it should not count it because
|
||||
# all logical volume are on sda2 ...
|
||||
d-i partman-auto/expert_recipe string \
|
||||
boot-root :: \
|
||||
538 538 1075 free \
|
||||
$iflabel{ gpt } \
|
||||
$reusemethod{ } \
|
||||
method{ efi } \
|
||||
format{ } \
|
||||
. \
|
||||
200 200000 250 ext3 \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
label{ boot } \
|
||||
mountpoint{ /boot } \
|
||||
. \
|
||||
16000 100000 -1 ext4 \
|
||||
$defaultignore{ } \
|
||||
$primary{ } \
|
||||
method{ lvm } \
|
||||
vg_name{ sys } \
|
||||
. \
|
||||
1000 8000 3000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_root } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ root } \
|
||||
mountpoint{ / } \
|
||||
. \
|
||||
4000 7000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_usr } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ usr } \
|
||||
mountpoint{ /usr } \
|
||||
. \
|
||||
4000 6000 8000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_var } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ var } \
|
||||
mountpoint{ /var } \
|
||||
. \
|
||||
1000 5000 2000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_tmp } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
options/nosuid{ nosuid } \
|
||||
label{ tmp } \
|
||||
mountpoint{ /tmp } \
|
||||
. \
|
||||
2000 4000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_home } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ home } \
|
||||
mountpoint{ /home } \
|
||||
. \
|
||||
512 3000 4000 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_opt } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ opt } \
|
||||
mountpoint{ /opt } \
|
||||
. \
|
||||
512 1000 100% linux-swap \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_swap } \
|
||||
method{ swap } format{ } \
|
||||
. \
|
||||
100 100 -1 ext4 \
|
||||
$lvmok{ } \
|
||||
in_vg{ sys } lv_name{ lv_free } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ free } \
|
||||
mountpoint{ /mnt/free } \
|
||||
.
|
||||
## Need to put all free space in a temp logical volume/partition
|
||||
# Otherwise it's the last partition which get all free space
|
||||
|
||||
# Allow to not set a swap partition
|
||||
#d-i partman-basicfilesystems/no_swap boolean false
|
||||
|
||||
# Automatically partition without confirmation
|
||||
d-i partman/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select finish
|
||||
d-i partman-md/confirm boolean true
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Kernel [[[
|
||||
######################################################################
|
||||
|
||||
## Kernel to install
|
||||
d-i base-installer/kernel/image select linux-image-amd64
|
||||
|
||||
## Drivers to include in the initrd
|
||||
d-i base-installer/initramfs-tools/driver-policy select most
|
||||
|
||||
################################################################## ]]]
|
||||
## APT configuration // Package selection [[[
|
||||
######################################################################
|
||||
|
||||
## Post install APT setup
|
||||
d-i apt-setup/uri_type select d-i
|
||||
d-i apt-setup/hostname string ftp.fr.debian.org
|
||||
d-i apt-setup/directory string /debian/
|
||||
d-i apt-setup/another boolean false
|
||||
d-i apt-setup/security-updates boolean false
|
||||
d-i apt-setup/services-select multiselect security
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
d-i apt-setup/enable-source-repositories boolean true
|
||||
|
||||
## Ensure to use a network mirror
|
||||
### Set to false for an offline installation
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
|
||||
## Choose packages
|
||||
tasksel tasksel/first multiselect ssh-server standard gnome-desktop
|
||||
|
||||
## Individual additional packages to install
|
||||
### tftp-hpa to download an archive (see preseed/late_command at the end of this file)
|
||||
d-i pkgsel/include string tftp-hpa
|
||||
|
||||
## Whether to upgrade packages after debootstrap.
|
||||
### Allowed values: none, safe-upgrade, full-upgrade
|
||||
d-i pkgsel/upgrade select full-upgrade
|
||||
|
||||
## Participate to Popularity Contest (disable for an unconnected server)
|
||||
d-i popularity-contest/participate boolean true
|
||||
|
||||
## For CD/DVD case
|
||||
### Don't scan for additional CD/DVD
|
||||
d-i apt-setup/cdrom/set-first boolean false
|
||||
d-i apt-setup/cdrom/set-double boolean false
|
||||
d-i apt-setup/cdrom/set-next boolean false
|
||||
d-i apt-setup/cdrom/set-failed boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## Grub is the default boot loader (for x86). If you want lilo installed
|
||||
## instead, uncomment this:
|
||||
#d-i grub-installer/skip boolean true
|
||||
## To also skip installing lilo, and install no bootloader, uncomment this too:
|
||||
#d-i lilo-installer/skip boolean true
|
||||
|
||||
## This is fairly safe to set, it makes grub install automatically to the MBR
|
||||
## if no other operating system is detected on the machine.
|
||||
d-i grub-installer/only_debian boolean true
|
||||
|
||||
## This one makes grub-installer install to the MBR if it also finds some other
|
||||
## OS, which is less safe as it might not be able to boot that other OS.
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
|
||||
## Since Debian Jessie, the d-i will ask to specify the device for Grub.
|
||||
## Should use 'default', to use the default system disk
|
||||
### Fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737
|
||||
d-i grub-installer/bootdev string default
|
||||
|
||||
## Don't force GRUB installation to the EFI removable media path
|
||||
d-i grub-installer/force-efi-extra-removable boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Finishing up the installation [[[
|
||||
######################################################################
|
||||
|
||||
## Avoid that last message about the install being complete.
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i prebaseconfig/reboot_in_progress note
|
||||
|
||||
## This will prevent the installer from ejecting the CD during the reboot,
|
||||
## which is useful in some situations.
|
||||
d-i cdrom-detect/eject boolean false
|
||||
|
||||
## This is how to make the installer shutdown when finished, but not
|
||||
## reboot into the installed system.
|
||||
#d-i debian-installer/exit/halt boolean true
|
||||
|
||||
## This will power off the machine instead of just halting it.
|
||||
#d-i debian-installer/exit/poweroff boolean true
|
||||
|
||||
## Execute some last commands
|
||||
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
|
||||
d-i preseed/late_command string in-target umount /dev/sys/lv_free ; \
|
||||
lvremove -f /dev/sys/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.bullseye.sh
|
||||
################################################################## ]]]
|
|
@ -0,0 +1,384 @@
|
|||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
#
|
||||
## Howto use [[[
|
||||
######################################################################
|
||||
|
||||
## With a PXE boot:
|
||||
#label BullseyeGnomeCrypto
|
||||
# menu label Debian Bullseye ^Gnome + UEFI + Cipher WITH PRESEED
|
||||
# kernel installer/debian/bullseye/amd64/linux
|
||||
# IPAPPEND 2
|
||||
# APPEND vga=normal initrd=installer/debian/bullseye/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/installer/debian/bullseye/amd64/preseed.gnome.uefi.cipher.cfg
|
||||
|
||||
################################################################## ]]]
|
||||
## Localization [[[
|
||||
######################################################################
|
||||
|
||||
## Install Time
|
||||
### Preseeding only locale sets language, country and locale.
|
||||
#d-i debian-installer/locale string en_US
|
||||
|
||||
## The values can also be preseeded individually for greater flexibility.
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string FR
|
||||
d-i debian-installer/locale select en_US.UTF-8
|
||||
d-i debian-installer/fallbacklocale select en_US.UTF-8
|
||||
d-i localechooser/supported-locales multiselect fr_FR.UTF-8
|
||||
d-i debian-installer/keymap string fr-latin9
|
||||
|
||||
## Choose language
|
||||
d-i localechooser/languagelist select en
|
||||
|
||||
## Choose keyboard configuration
|
||||
d-i console-tools/archs string skip-config
|
||||
d-i console-keymaps-at/keymap select fr-latin9
|
||||
d-i keyboard-configuration/xkb-keymap select French
|
||||
|
||||
################################################################## ]]]
|
||||
## Network configuration [[[
|
||||
######################################################################
|
||||
|
||||
## Auto-configure networking
|
||||
d-i netcfg/use_autoconfig boolean true
|
||||
|
||||
# Disable that annoying WEP key dialog.
|
||||
d-i netcfg/wireless_wep string
|
||||
|
||||
## To set a different link detection timeout (default is 3 seconds).
|
||||
## Values are interpreted as seconds.
|
||||
d-i netcfg/link_detection_timeout string 20
|
||||
d-i netcfg/link_wait_timeout string 3
|
||||
|
||||
## If you have a slow dhcp server and the installer times out waiting for
|
||||
## it, this might be useful.
|
||||
d-i netcfg/dhcp_timeout string 60
|
||||
d-i netcfg/dhcpv6_timeout string 1
|
||||
|
||||
## Network Configuration
|
||||
d-i netcfg/get_hostname string unassigned-hostname
|
||||
d-i netcfg/get_domain string unassigned-domain
|
||||
|
||||
## If non-free firmware is needed for the network or other hardware, you can
|
||||
## configure the installer to always try to load it, without prompting. Or
|
||||
## change to false to disable asking.
|
||||
d-i hw-detect/load_firmware boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Remote install (Manual) [[[
|
||||
######################################################################
|
||||
|
||||
## Use the following settings if you wish to make use of the network-console
|
||||
## component for remote installation over SSH. This only makes sense if you
|
||||
## intend to perform the remainder of the installation manually.
|
||||
#d-i anna/choose_modules string network-console
|
||||
#d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
|
||||
#d-i network-console/password password r00tme
|
||||
#d-i network-console/password-again password r00tme
|
||||
|
||||
################################################################## ]]]
|
||||
## Mirror settings [[[
|
||||
######################################################################
|
||||
|
||||
## Mirror
|
||||
d-i mirror/country string FR
|
||||
d-i mirror/http/hostname string ftp.fr.debian.org
|
||||
d-i mirror/http/directory string /debian/
|
||||
d-i mirror/http/proxy string
|
||||
d-i mirror/http/mirror string ftp.fr.debian.org
|
||||
d-i mirror/suite string
|
||||
|
||||
################################################################## ]]]
|
||||
## Account [[[
|
||||
######################################################################
|
||||
|
||||
## Enable shadow passwords
|
||||
d-i passwd/shadow boolean true
|
||||
|
||||
## Allow login as root?
|
||||
d-i passwd/root-login boolean true
|
||||
|
||||
## Root password in clear text
|
||||
#d-i passwd/root-password password r00tme
|
||||
#d-i passwd/root-password-again password r00tme
|
||||
## ... or encrypted with {MD5, SHA512, …) hash
|
||||
d-i passwd/root-password-crypted password $6$ceGTxMxc$gXajYByJna1cfTjaST3TcF0FfrlSAaEcmCiOMq/DBOuD0tlu8VYQosZPgwcFT4bCuODMErU/fgRxZEeu9c10V0
|
||||
|
||||
## Create a normal user account now?
|
||||
d-i passwd/make-user boolean false
|
||||
|
||||
## User name
|
||||
#d-i passwd/user-fullname string bob
|
||||
#d-i passwd/username string bob
|
||||
## User password in clear text
|
||||
#d-i passwd/user-password password insecure
|
||||
#d-i passwd/user-password-again password insecure
|
||||
## ... or encrypted with MD5 hash
|
||||
#d-i passwd/user-password-crypted password $1$098f6bcd4621d373cade4e832627b4f6
|
||||
|
||||
## Set User UID
|
||||
#d-i passwd/user-uid string 1000
|
||||
|
||||
################################################################## ]]]
|
||||
## Clock and time zone setup [[[
|
||||
######################################################################
|
||||
|
||||
## Material clock on UTC
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string Europe/Paris
|
||||
|
||||
## Use NTP to set time
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string ntp.univ-rennes1.fr
|
||||
|
||||
################################################################## ]]]
|
||||
## Disk Partitioning/Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## If the system has only one disk the installer will default to using it.
|
||||
## Otherwise, the device name must be given
|
||||
d-i partman-auto/disk string /dev/nvme0n1 /dev/sda /dev/vda
|
||||
|
||||
d-i partman-auto/init_automatically_partition select custom
|
||||
|
||||
## Specify the method to use
|
||||
### - regular: use the usual partition types for the architecture
|
||||
### - lvm: use LVM to partition the disk
|
||||
### - crypto: use LVM within an encrypted partition
|
||||
d-i partman-auto/method string crypto
|
||||
|
||||
## It's not ok to have /boot in the LVM
|
||||
d-i partman-auto-lvm/no_boot boolean false
|
||||
|
||||
## Remove old LVM configuration
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
d-i partman-lvm/device_remove_lvm_span boolean true
|
||||
d-i partman-auto/purge_lvm_from_device boolean true
|
||||
|
||||
## Remove old RAID configuration
|
||||
d-i partman-md/device_remove_md boolean true
|
||||
d-i partman-md/confirm boolean true
|
||||
|
||||
## Confirm to write the LVM partitions
|
||||
d-i partman-lvm/confirm boolean true
|
||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
|
||||
## Keep that one set to true so we end up with a UEFI enabled
|
||||
## system. If set to false, /var/lib/partman/uefi_ignore will be touched
|
||||
d-i partman-efi/non_efi_system boolean true
|
||||
|
||||
## Enforce usage of GPT - a must have to use EFI!
|
||||
d-i partman-basicfilesystems/choose_label string gpt
|
||||
d-i partman-basicfilesystems/default_label string gpt
|
||||
d-i partman-partitioning/choose_label string gpt
|
||||
d-i partman-partitioning/default_label string gpt
|
||||
d-i partman/choose_label string gpt
|
||||
d-i partman/default_label string gpt
|
||||
|
||||
## Volume Group/vg
|
||||
d-i partman-auto-lvm/new_vg_name string crypt
|
||||
|
||||
### From Buster, need to specify the expected size
|
||||
d-i partman-auto-lvm/guided_size string max
|
||||
|
||||
d-i partman-auto/choose_recipe select root-encrypted
|
||||
d-i partman-auto/expert_recipe string \
|
||||
root-encrypted :: \
|
||||
538 300000 1075 free \
|
||||
$iflabel{ gpt } \
|
||||
$reusemethod{ } \
|
||||
method{ efi } \
|
||||
format{ } \
|
||||
. \
|
||||
200 200000 400 ext3 \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
mountpoint{ /boot } \
|
||||
. \
|
||||
1000 8000 3000 ext4 \
|
||||
$lvmok{ } \
|
||||
$primary{ } \
|
||||
lv_name{ lv_root } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ root } \
|
||||
mountpoint{ / } \
|
||||
. \
|
||||
4000 7000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_usr } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ usr } \
|
||||
mountpoint{ /usr } \
|
||||
. \
|
||||
4000 6000 8000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_var } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ var } \
|
||||
mountpoint{ /var } \
|
||||
. \
|
||||
1000 5000 2000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_tmp } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
options/nosuid{ nosuid } \
|
||||
label{ tmp } \
|
||||
mountpoint{ /tmp } \
|
||||
. \
|
||||
2000 4000 10000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_home } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
options/nodev{ nodev } \
|
||||
label{ home } \
|
||||
mountpoint{ /home } \
|
||||
. \
|
||||
512 3000 4000 ext4 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_opt } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ opt } \
|
||||
mountpoint{ /opt } \
|
||||
. \
|
||||
512 1000 100% linux-swap \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_swap } \
|
||||
method{ swap } format{ } \
|
||||
. \
|
||||
100 100 -1 ext3 \
|
||||
$lvmok{ } \
|
||||
lv_name{ lv_free } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext3 } \
|
||||
label{ free } \
|
||||
mountpoint{ /mnt/free } \
|
||||
.
|
||||
## Need to put all free space in a temp logical volume/partition
|
||||
## Otherwise it's the last partition which get all free space
|
||||
|
||||
## Allow to not set a swap partition
|
||||
#d-i partman-basicfilesystems/no_swap boolean false
|
||||
|
||||
## Return to menu if no mount point is assigned to a filesystem
|
||||
d-i partman-basicfilesystems/no_mount_point boolean false
|
||||
|
||||
## Automatically partition without confirmation
|
||||
d-i partman/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select finish
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
|
||||
################################################################## ]]]
|
||||
## Kernel [[[
|
||||
######################################################################
|
||||
|
||||
## Kernel to install
|
||||
d-i base-installer/kernel/image select linux-image-amd64
|
||||
|
||||
## Drivers to include in the initrd
|
||||
d-i base-installer/initramfs-tools/driver-policy select most
|
||||
|
||||
################################################################## ]]]
|
||||
## APT configuration // Package selection [[[
|
||||
######################################################################
|
||||
|
||||
## Post install APT setup
|
||||
d-i apt-setup/uri_type select d-i
|
||||
d-i apt-setup/hostname string ftp.fr.debian.org
|
||||
d-i apt-setup/directory string /debian/
|
||||
d-i apt-setup/another boolean false
|
||||
d-i apt-setup/security-updates boolean false
|
||||
d-i apt-setup/services-select multiselect security
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
d-i apt-setup/enable-source-repositories boolean true
|
||||
|
||||
## Ensure to use a network mirror
|
||||
### Set to false for an offline installation
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
|
||||
## Choose packages
|
||||
tasksel tasksel/first multiselect ssh-server standard gnome-desktop
|
||||
|
||||
## Individual additional packages to install
|
||||
### tftp-hpa to download an archive (see preseed/late_command at the end of this file)
|
||||
d-i pkgsel/include string tftp-hpa
|
||||
|
||||
## Whether to upgrade packages after debootstrap.
|
||||
### Allowed values: none, safe-upgrade, full-upgrade
|
||||
d-i pkgsel/upgrade select full-upgrade
|
||||
|
||||
## Participate to Popularity Contest (disable for an unconnected server)
|
||||
d-i popularity-contest/participate boolean true
|
||||
|
||||
## For CD/DVD case
|
||||
### Don't scan for additional CD/DVD
|
||||
d-i apt-setup/cdrom/set-first boolean false
|
||||
d-i apt-setup/cdrom/set-double boolean false
|
||||
d-i apt-setup/cdrom/set-next boolean false
|
||||
d-i apt-setup/cdrom/set-failed boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Boot loader [[[
|
||||
######################################################################
|
||||
|
||||
## Grub is the default boot loader (for x86). If you want lilo installed
|
||||
## instead, uncomment this:
|
||||
#d-i grub-installer/skip boolean true
|
||||
## To also skip installing lilo, and install no bootloader, uncomment this too:
|
||||
#d-i lilo-installer/skip boolean true
|
||||
|
||||
## This is fairly safe to set, it makes grub install automatically to the MBR
|
||||
## if no other operating system is detected on the machine.
|
||||
d-i grub-installer/only_debian boolean true
|
||||
|
||||
## This one makes grub-installer install to the MBR if it also finds some other
|
||||
## OS, which is less safe as it might not be able to boot that other OS.
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
|
||||
## Since Debian Jessie, the d-i will ask to specify the device for Grub.
|
||||
## Should use 'default', to use the default system disk
|
||||
### Fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737
|
||||
d-i grub-installer/bootdev string default
|
||||
|
||||
## Don't force GRUB installation to the EFI removable media path
|
||||
d-i grub-installer/force-efi-extra-removable boolean false
|
||||
|
||||
################################################################## ]]]
|
||||
## Finishing up the installation [[[
|
||||
######################################################################
|
||||
|
||||
## Avoid that last message about the install being complete.
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i prebaseconfig/reboot_in_progress note
|
||||
|
||||
## This will prevent the installer from ejecting the CD during the reboot,
|
||||
## which is useful in some situations.
|
||||
d-i cdrom-detect/eject boolean false
|
||||
|
||||
## This is how to make the installer shutdown when finished, but not
|
||||
## reboot into the installed system.
|
||||
#d-i debian-installer/exit/halt boolean true
|
||||
|
||||
## This will power off the machine instead of just halting it.
|
||||
#d-i debian-installer/exit/poweroff boolean true
|
||||
|
||||
## Execute some last commands
|
||||
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
|
||||
d-i preseed/late_command string in-target umount /dev/crypt/lv_free ; \
|
||||
lvremove -f /dev/crypt/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.bullseye.sh
|
||||
################################################################## ]]]
|
|
@ -1,77 +0,0 @@
|
|||
ui menu.c32
|
||||
menu title PXE-CHIMIE
|
||||
|
||||
# Boot sur le disque local au bout de 10 secondes
|
||||
prompt 0
|
||||
timeout 100
|
||||
ONTIMEOUT local-hdd
|
||||
|
||||
LABEL local-hdd
|
||||
MENU LABEL Boot local disk
|
||||
KERNEL chain.c32
|
||||
APPEND hd0
|
||||
|
||||
LABEL reboot
|
||||
MENU LABEL Reboot
|
||||
KERNEL reboot.c32
|
||||
|
||||
# D-I config version 2.0
|
||||
LABEL debian64
|
||||
MENU TITLE Debian Wheezy 64bits installer
|
||||
include debian/wheezy/pxelinux.cfg
|
||||
|
||||
LABEL ubuntu
|
||||
MENU LABEL Ubuntu Precise 64bits installer
|
||||
APPEND ubuntu/precise/ubuntu-installer/amd64/boot-screens/menu.cfg
|
||||
KERNEL ubuntu/precise/ubuntu-installer/amd64/boot-screens/vesamenu.c32
|
||||
|
||||
#LABEL CentOS
|
||||
# MENU LABEL CentOS 6
|
||||
# LINUX memdisk
|
||||
# INITRD iso/CentOS-6.4-x86_64-netinstall.iso
|
||||
# APPEND iso raw
|
||||
|
||||
LABEL CentOS
|
||||
MENU LABEL CentOS 6 x86_64 text installer
|
||||
#KERNEL images/CentOS/6/x86_64/vmlinuz vnc vncpassword=tempVNCpwd headless text ip=dhcp ksdevice=eth0 method=http://mirror.in2p3.fr/linux/CentOS/6/os/x86_64 lang=en_US keymap=fr
|
||||
KERNEL images/CentOS/6/x86_64/vmlinuz keymap=fr
|
||||
APPEND initrd=images/CentOS/6/x86_64/initrd.img ksdevice=eth0 kssendmac ks=nfs:deploy.chimie.univ-rennes1.fr:/var/lib/tftpboot/images/CentOS/6/x86_64/ks.cfg headless vnc vncpassword=tempVNCpwd text
|
||||
#APPEND initrd=images/CentOS/6/x86_64/initrd.img ramdisk_size=100000 ks=nfs:deploy.chimie.univ-rennes1.fr:/var/lib/tftpboot/images/CentOS/6/x86_64/ks.cfg text
|
||||
|
||||
LABEL nec-firm-upd
|
||||
MENU LABEL Nec Firmware Update CD
|
||||
LINUX memdisk
|
||||
INITRD fw/nec/BOOT_CD_NEC_v1.0.24.iso
|
||||
APPEND iso raw
|
||||
TEXT HELP
|
||||
!!! WARNING : firmware update !!!
|
||||
ENDTEXT
|
||||
|
||||
LABEL freenas
|
||||
MENU LABEL FreeNAS-9.1.1-RELEASE-x64 Install
|
||||
LINUX memdisk
|
||||
INITRD iso/FreeNAS-9.1.1-RELEASE-x64.iso
|
||||
APPEND iso raw
|
||||
|
||||
LABEL freenas
|
||||
MENU LABEL FreeNAS Install
|
||||
PXE freenas/boot/pxeboot
|
||||
|
||||
LABEL clonezilla
|
||||
MENU LABEL Clonezilla live i686 (Disk Imaging and Cloning)
|
||||
KERNEL images/clonezilla/i686/vmlinuz
|
||||
APPEND initrd=images/clonezilla/i686/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt usercrypted=SpXNs.adAr4po ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts="fr" ocs_live_batch="no" locales="en_US.UTF-8" vga=788 nosplash noprompt fetch=tftp://129.20.80.239/images/clonezilla/i686/filesystem.squashfs
|
||||
|
||||
# Boot the kernel and initramfs over PXE 32-bit.
|
||||
LABEL pmagic32
|
||||
MENU LABEL PMagic 32bits
|
||||
LINUX images/pmagic/bzImage
|
||||
INITRD images/pmagic/initrd.img
|
||||
APPEND edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256
|
||||
|
||||
# Boot the kernel and initramfs over PXE 64-bit.
|
||||
LABEL pmagic64
|
||||
MENU LABEL PMagic 64bits
|
||||
LINUX images/pmagic/bzImage64
|
||||
INITRD images/pmagic/initrd.img
|
||||
APPEND edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256
|
|
@ -18,7 +18,7 @@ Set of scripts to download and generate necessary files to allow differents GNU/
|
|||
### download_debian.sh
|
||||
The script will provide netboot installers for all Debian (>=oldStable) for both **i386** and **amd64** :
|
||||
* Store the files to **/srv/tftp** (default).
|
||||
* Download Debian Linux kernel and initrd files for all Debian distributions (Stable : **Stretch**; Testing : **Buster**; oldStable : **Jessie**; oldoldStable : **Wheezy**; Unstable : **Sid**) and for **i386** and **amd64** architectures.
|
||||
* Download Debian Linux kernel and initrd files for all Debian distributions (Stable : **Stretch**; Testing : **Buster**; oldStable : **Jessie**; Unstable : **Sid**) and for **i386** and **amd64** architectures.
|
||||
* Offer an example menu file to use with a TFTP server (default_path/installer/debian/menu.cfg.example).
|
||||
|
||||
### download_ubuntu.sh
|
||||
|
@ -31,7 +31,7 @@ The script will provide netboot installers for the latest LTS and latest advance
|
|||
The script will provide Debian's netboot installers with **additionnals firmwares** for all Debian (>=oldStable) for **amd64** only :
|
||||
* Store the files to **/srv/tftp** (default).
|
||||
* Store temp files to **/tmp/tmp.XXXXXXXXXX** (with `mktemp`).
|
||||
* Download Debian's initrd files for all Debian distributions (Stable : **Stretch**; Testing : **Buster**; oldStable : **Jessie**; oldoldStable : **Wheezy**; Unstable : **Sid**) for **amd64** architecture only.
|
||||
* Download Debian's initrd files for all Debian distributions (Stable : **Stretch**; Testing : **Buster**; oldStable : **Jessie**; Unstable : **Sid**) for **amd64** architecture only.
|
||||
* Download additionnals firmwares :
|
||||
* **bnx2** : For Broadcom NetXtremeII network adapters.
|
||||
* **linux-nonfree** : For Tigon network adapters.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script do the following:
|
||||
# Download Debian Stable (Stretch)
|
||||
# Download Debian Testing (Buster)
|
||||
# Download Debian oldStable (Jessie)
|
||||
# Download Debian oldoldStable (Wheezy)
|
||||
# Download Debian Stable (Buster)
|
||||
# Download Debian Testing (Bullseye)
|
||||
# Download Debian oldStable (Stretch)
|
||||
# Download Debian oldoldStable (Jessie)
|
||||
# Download Debian Unstable (Sid)
|
||||
# Make an PXE's config file (aka menu.cfg)
|
||||
|
||||
|
@ -22,7 +22,7 @@ mkdir -p "${DEBIAN_INSTALLER_DIR}"
|
|||
rm -f "${DEBIAN_CONFIG_PXE}"
|
||||
touch "${DEBIAN_CONFIG_PXE}"
|
||||
|
||||
for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version
|
||||
for DISTRO in buster bullseye stretch jessie sid; do # For ALL Debian's version
|
||||
for ARCH in amd64 i386; do # For all classic architecture
|
||||
|
||||
# Create and go into directory
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
// Should APT install recommended or suggested packages?
|
||||
APT::Install-Recommends "false";
|
||||
APT::Install-Suggests "false";
|
||||
|
||||
// APT should not consider recommended or suggested packages to be unused
|
||||
APT::AutoRemove::RecommendsImportant "true";
|
||||
APT::AutoRemove::SuggestsImportant "true";
|
|
@ -0,0 +1,6 @@
|
|||
# From latecommand - Debian's preseed
|
||||
deb http://ftp.fr.debian.org/debian/ bullseye main non-free contrib
|
||||
deb-src http://ftp.fr.debian.org/debian/ bullseye main non-free contrib
|
||||
|
||||
deb http://security.debian.org/debian-security bullseye/updates main contrib non-free
|
||||
deb-src http://security.debian.org/debian-security bullseye/updates main contrib non-free
|
|
@ -0,0 +1,29 @@
|
|||
# see "man logrotate" for details
|
||||
|
||||
# global options do not affect preceding include directives
|
||||
|
||||
# rotate log files weekly
|
||||
weekly
|
||||
|
||||
# keep 4 weeks worth of backlogs
|
||||
rotate 4
|
||||
|
||||
# create new (empty) log files after rotating old ones
|
||||
create
|
||||
|
||||
# use date as a suffix of the rotated file
|
||||
dateext
|
||||
|
||||
# compress log files
|
||||
compress
|
||||
|
||||
# Postpone compression of the previous log file to the next rotation cycle
|
||||
delaycompress
|
||||
|
||||
# Do not rotate the log if it is empty
|
||||
notifempty
|
||||
|
||||
# packages drop log rotation information into this directory
|
||||
include /etc/logrotate.d
|
||||
|
||||
# system-specific logs may also be configured here.
|
|
@ -0,0 +1,7 @@
|
|||
/var/log/alternatives.log {
|
||||
monthly
|
||||
rotate 12
|
||||
missingok
|
||||
create 644 root root
|
||||
olddir /var/log/alternatives.d
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/var/log/apt/term.log {
|
||||
rotate 12
|
||||
monthly
|
||||
missingok
|
||||
}
|
||||
|
||||
/var/log/apt/history.log {
|
||||
rotate 12
|
||||
monthly
|
||||
missingok
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/var/log/aptitude {
|
||||
rotate 6
|
||||
monthly
|
||||
missingok
|
||||
olddir /var/log/aptitude.d
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
# no packages own btmp -- we'll rotate it here
|
||||
/var/log/btmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0660 root utmp
|
||||
rotate 3
|
||||
olddir /var/log/old_logs.d
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/var/log/dpkg.log {
|
||||
monthly
|
||||
rotate 12
|
||||
missingok
|
||||
create 644 root root
|
||||
olddir /var/log/dpkg.d
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
# Default directives are activilly used, please see /etc/logrotate.conf
|
||||
|
||||
/var/log/syslog
|
||||
/var/log/syslog.log
|
||||
/var/log/local0.log
|
||||
/var/log/local1.log
|
||||
/var/log/local2.log
|
||||
/var/log/local3.log
|
||||
/var/log/local4.log
|
||||
/var/log/local5.log
|
||||
/var/log/local6.log
|
||||
/var/log/local7.log
|
||||
/var/log/uucp.log
|
||||
{
|
||||
rotate 8
|
||||
daily
|
||||
missingok
|
||||
olddir /var/log/syslog.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/cron.log /var/log/mark.log {
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/cron.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/daemon.log {
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/daemon.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/kern.log /var/log/kernel.log {
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/kern.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/lpr.log {
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/lpr.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/mail.log
|
||||
/var/log/mail.info
|
||||
/var/log/mail.warn
|
||||
/var/log/mail.err
|
||||
{
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/mail.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/auth.log
|
||||
/var/log/authpriv.log
|
||||
/var/log/user.log
|
||||
{
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/auth.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/messages /var/log/debug {
|
||||
maxsize 250k
|
||||
missingok
|
||||
sharedscripts
|
||||
olddir /var/log/messages.d
|
||||
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# no packages own wtmp -- we'll rotate it here
|
||||
/var/log/wtmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0664 root utmp
|
||||
minsize 1M
|
||||
rotate 3
|
||||
olddir /var/log/old_logs.d
|
||||
}
|
|
@ -0,0 +1,107 @@
|
|||
# /etc/rsyslog.conf Configuration file for rsyslog.
|
||||
#
|
||||
# For more information install rsyslog-doc and see
|
||||
# /usr/share/doc/rsyslog-doc/html/configuration/index.html
|
||||
|
||||
|
||||
#################
|
||||
#### MODULES ####
|
||||
#################
|
||||
|
||||
#
|
||||
# Provides support for local system logging
|
||||
#
|
||||
module(load="imuxsock")
|
||||
|
||||
#
|
||||
# Provides kernel logging support
|
||||
#
|
||||
module(load="imklog")
|
||||
|
||||
#
|
||||
# Provides --MARK-- message capability
|
||||
#
|
||||
#module(load="immark")
|
||||
|
||||
#
|
||||
# Provides UDP syslog reception
|
||||
#
|
||||
#module(load="imudp")
|
||||
#input(type="imudp" port="514" ruleset="remote")
|
||||
|
||||
#
|
||||
# Provides TCP syslog reception
|
||||
#
|
||||
#module(load="imtcp")
|
||||
#input(type="imtcp" port="514")
|
||||
|
||||
|
||||
###########################
|
||||
#### GLOBAL DIRECTIVES ####
|
||||
###########################
|
||||
|
||||
#
|
||||
# Use traditional timestamp format.
|
||||
# To enable high precision timestamps, comment out the following line.
|
||||
#
|
||||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
||||
|
||||
#
|
||||
# Set the default permissions for all log files.
|
||||
#
|
||||
$FileOwner root
|
||||
$FileGroup adm
|
||||
$FileCreateMode 0640
|
||||
$DirCreateMode 0755
|
||||
$Umask 0022
|
||||
|
||||
#
|
||||
# Where to place spool and state files
|
||||
#
|
||||
$WorkDirectory /var/spool/rsyslog
|
||||
|
||||
#
|
||||
# Include all config files in /etc/rsyslog.d/
|
||||
#
|
||||
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||
|
||||
|
||||
###############
|
||||
#### RULES ####
|
||||
###############
|
||||
|
||||
#
|
||||
# First some standard log files. Log by facility.
|
||||
#
|
||||
auth,authpriv.* /var/log/auth.log
|
||||
*.*;auth,authpriv.none -/var/log/syslog
|
||||
cron.* /var/log/cron.log
|
||||
daemon.* -/var/log/daemon.log
|
||||
kern.* -/var/log/kern.log
|
||||
lpr.* -/var/log/lpr.log
|
||||
mail.* -/var/log/mail.log
|
||||
user.* -/var/log/user.log
|
||||
|
||||
#
|
||||
# Logging for the mail system. Split it up so that
|
||||
# it is easy to write scripts to parse these files.
|
||||
#
|
||||
mail.info -/var/log/mail.info
|
||||
mail.warn -/var/log/mail.warn
|
||||
mail.err /var/log/mail.err
|
||||
|
||||
#
|
||||
# Some "catch-all" log files.
|
||||
#
|
||||
*.=debug;\
|
||||
auth,authpriv.none;\
|
||||
news.none;mail.none -/var/log/debug
|
||||
*.=info;*.=notice;*.=warn;\
|
||||
auth,authpriv.none;\
|
||||
cron,daemon.none;\
|
||||
mail,news.none -/var/log/messages
|
||||
|
||||
#
|
||||
# Emergencies are sent to everybody logged in.
|
||||
#
|
||||
*.emerg :omusrmsg:*
|
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Redirect PAM session information for 'cron' entries to the cron log file,
|
||||
# to avoid filling up auth.log
|
||||
#
|
||||
if ($msg contains "pam_unix(cron:session): session opened for user") then {
|
||||
action(
|
||||
type="omfile"
|
||||
file="/var/log/cron.log"
|
||||
fileOwner="root"
|
||||
fileGroup="adm"
|
||||
fileCreateMode="0640"
|
||||
dirCreateMode="0755"
|
||||
)
|
||||
stop
|
||||
} else if ($msg contains "pam_unix(cron:session): session closed for user") then {
|
||||
action(
|
||||
type="omfile"
|
||||
file="/var/log/cron.log"
|
||||
fileOwner="root"
|
||||
fileGroup="adm"
|
||||
fileCreateMode="0640"
|
||||
dirCreateMode="0755"
|
||||
)
|
||||
stop
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# Create an additional socket in postfix's chroot in order not to break
|
||||
# mail logging when rsyslog is restarted. If the directory is missing,
|
||||
# rsyslog will silently skip creating the socket.
|
||||
$AddUnixListenSocket /var/spool/postfix/dev/log
|
|
@ -0,0 +1,162 @@
|
|||
#!/bin/sh
|
||||
|
||||
APT_CONF_INCLUDE_SRC="$(dirname $0)/bullseye/etc/apt/apt.conf.d/"
|
||||
APT_CONF_INCLUDE_PATH="/etc/apt/apt.conf.d/"
|
||||
|
||||
APT_SOURCES_SRC="$(dirname $0)/bullseye/etc/apt/sources.list"
|
||||
APT_SOURCES_PATH="/etc/apt/sources.list"
|
||||
|
||||
RSYSLOGD_CONF_SRC="$(dirname $0)/bullseye/etc/rsyslog.conf"
|
||||
RSYSLOGD_CONF_PATH="/etc/rsyslog.conf"
|
||||
RSYSLOGD_INCLUDE_SRC="$(dirname $0)/bullseye/etc/rsyslog.d/"
|
||||
RSYSLOGD_INCLUDE_PATH="/etc/rsyslog.d/"
|
||||
|
||||
LOGROTATE_CONF_SRC="$(dirname $0)/bullseye/etc/logrotate.conf"
|
||||
LOGROTATE_CONF_PATH="/etc/logrotate.conf"
|
||||
LOGROTATE_INCLUDE_SRC="$(dirname $0)/bullseye/etc/logrotate.d/"
|
||||
LOGROTATE_INCLUDE_PATH="/etc/logrotate.d/"
|
||||
|
||||
# apt configuration {{{
|
||||
|
||||
# ensure to have some default configuration for Apt
|
||||
cp -- "${APT_CONF_INCLUDE_SRC}"* "${APT_CONF_INCLUDE_PATH}"
|
||||
|
||||
# ensure to have a correct sources.list file for Apt
|
||||
cp -- "${APT_SOURCES_SRC}" "${APT_SOURCES_PATH}"
|
||||
|
||||
# }}}
|
||||
|
||||
## Packages {{{
|
||||
|
||||
# update repositories and packages
|
||||
apt update
|
||||
apt -y full-upgrade
|
||||
|
||||
# Ensure to have some basic packages
|
||||
apt -y install aptitude tmux vim-nox zsh
|
||||
|
||||
# Ensure to remove some "too"-basic packages
|
||||
aptitude -y remove vim-tiny
|
||||
|
||||
# If no X display is expected
|
||||
if [ ! "$(dpkg -l xorg)" ]; then
|
||||
## Remove unwanted x11 lib
|
||||
aptitude -y remove libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 xauth
|
||||
if [ "$(dpkg -l task-english)" ]; then
|
||||
## Remove task-english
|
||||
aptitude -y remove task-english iamerican ibritish ienglish-common ispell util-linux-locales wamerican
|
||||
fi
|
||||
else
|
||||
if [ "$(dpkg -l task-english)" ]; then
|
||||
## Remove task-english
|
||||
aptitude -y remove task-english
|
||||
fi
|
||||
fi
|
||||
|
||||
### Documentation {{{
|
||||
# Remove task-french
|
||||
if [ "$(dpkg -l task-french)" ]; then
|
||||
# Move default wordlist to american before remove all packages
|
||||
select-default-wordlist --set-default=american
|
||||
aptitude -y remove task-french
|
||||
|
||||
# Reinstall useful french doc and move back to french dict
|
||||
aptitude -y install aspell-fr ifrench-gut manpages-fr wfrench
|
||||
select-default-wordlist --set-default=".*(F|f)rench.*"
|
||||
fi
|
||||
|
||||
# Ensure to have minimal documentation
|
||||
aptitude -y install man-db manpages manpages-fr
|
||||
|
||||
### }}}
|
||||
|
||||
### SSH {{{
|
||||
# Remove task-ssh-server
|
||||
if [ "$(dpkg -l task-ssh-server)" ]; then
|
||||
aptitude -y remove task-ssh-server ncurses-term
|
||||
fi
|
||||
|
||||
# Ensure to install openssh-server
|
||||
aptitude -y install openssh-server openssh-sftp-server
|
||||
|
||||
### }}}
|
||||
|
||||
# Ansible dependencies
|
||||
aptitude -y install python3-apt
|
||||
|
||||
### Tasksel {{{
|
||||
# If tasksel and tasksel-data are the only task* relative packages
|
||||
if [ "$(dpkg -l | grep -c '^ii task')" -eq "2" ]; then
|
||||
aptitude -y remove tasksel tasksel-data
|
||||
fi
|
||||
|
||||
# purge configuration files
|
||||
aptitude -y purge '~c'
|
||||
|
||||
### }}}
|
||||
|
||||
## }}}
|
||||
|
||||
# Grub {{{
|
||||
|
||||
## If EFI directory is present
|
||||
EFI_PATH="/boot/efi"
|
||||
if [ -d "${EFI_PATH}" ]; then
|
||||
## Install grub-efi
|
||||
aptitude install -y grub-efi-amd64
|
||||
## Get grub device (keep only some patterns, eg. /dev/sda, /dev/vda, /dev/nvme0n1,…)
|
||||
GRUB_DEVICE=$(sed -n "s;^\(/dev/[a-z]\{3\}\|/dev/nvme[a-z0-9]\{3\}\)\(p[0-9]\|[0-9]\) ${EFI_PATH} .*;\1;p" /etc/mtab)
|
||||
grub-install --target=x86_64-efi "${GRUB_DEVICE}" 2>/dev/null
|
||||
if [ -d "${EFI_PATH}"/EFI ]; then
|
||||
## Copy efi entries to a boot directory
|
||||
mkdir -p -- "${EFI_PATH}"/EFI/boot
|
||||
find "${EFI_PATH}"/EFI/grub -type f -iname "grubx64.efi" -exec cp {} "${EFI_PATH}"/EFI/boot/bootx64.efi \; -quit 2>/dev/null
|
||||
find "${EFI_PATH}"/EFI/debian -type f -iname "grubx64.efi" -exec cp {} "${EFI_PATH}"/EFI/boot/bootx64.efi \; -quit
|
||||
fi
|
||||
fi
|
||||
|
||||
### }}}
|
||||
|
||||
### Rsyslog {{{
|
||||
|
||||
# Install new Rsyslog configuration
|
||||
if [ -f "${RSYSLOGD_CONF_PATH}" ]; then
|
||||
cp -- "${RSYSLOGD_CONF_PATH}" "${RSYSLOGD_CONF_PATH}".orig
|
||||
cp -- "${RSYSLOGD_CONF_SRC}" "${RSYSLOGD_CONF_PATH}"
|
||||
fi
|
||||
cp -- "${RSYSLOGD_INCLUDE_SRC}"* "${RSYSLOGD_INCLUDE_PATH}"
|
||||
|
||||
# Restart Rsyslog service
|
||||
systemctl restart rsyslog
|
||||
|
||||
### }}}
|
||||
### Logrotate {{{
|
||||
|
||||
# Install new Logrotate configuration
|
||||
if [ -f "${LOGROTATE_CONF_PATH}" ]; then
|
||||
cp -- "${LOGROTATE_CONF_PATH}" "${LOGROTATE_CONF_PATH}".orig
|
||||
cp -- "${LOGROTATE_CONF_SRC}" "${LOGROTATE_CONF_PATH}"
|
||||
fi
|
||||
cp -- "${LOGROTATE_INCLUDE_SRC}"* "${LOGROTATE_INCLUDE_PATH}"
|
||||
|
||||
# Create an archive directory for some log files (aptitude, dpkg,…)
|
||||
mkdir -p -- /var/log/old_logs.d \
|
||||
/var/log/alternatives.d \
|
||||
/var/log/aptitude.d \
|
||||
/var/log/auth.d \
|
||||
/var/log/cron.d \
|
||||
/var/log/daemon.d \
|
||||
/var/log/dpkg.d \
|
||||
/var/log/kern.d \
|
||||
/var/log/mail.d \
|
||||
/var/log/messages.d \
|
||||
/var/log/syslog.d
|
||||
|
||||
chmod 0750 /var/log/auth.d /var/log/daemon.d /var/log/kern.d /var/log/messages.d /var/log/syslog.d
|
||||
chown root:adm /var/log/auth.d /var/log/daemon.d /var/log/kern.d /var/log/messages.d /var/log/syslog.d
|
||||
|
||||
# Create the log directory for journald (Systemd), need the configuration Storage=(auto|persistent)
|
||||
mkdir -p -- /var/log/journal
|
||||
### }}}
|
||||
|
||||
exit 0
|
|
@ -33,7 +33,10 @@ apt update
|
|||
apt -y full-upgrade
|
||||
|
||||
# Ensure to have some basic packages
|
||||
apt -y install aptitude tmux zsh
|
||||
apt -y install aptitude tmux vim-nox zsh
|
||||
|
||||
# Ensure to remove some "too"-basic packages
|
||||
aptitude -y remove vim-tiny
|
||||
|
||||
# If no X display is expected
|
||||
if [ ! "$(dpkg -l xorg)" ]; then
|
||||
|
|
|
@ -27,7 +27,11 @@ apt update
|
|||
apt -y full-upgrade
|
||||
|
||||
# Ensure to have some basic packages
|
||||
apt -y install aptitude tmux zsh
|
||||
apt -y install aptitude tmux vim-nox zsh
|
||||
|
||||
# Ensure to remove some "too"-basic packages
|
||||
aptitude -y remove vim-tiny
|
||||
|
||||
|
||||
# Ensure to have some systemd basic packages
|
||||
aptitude -y install dbus libpam-systemd
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script do the following:
|
||||
# Download Debian Initrd for Buster, Stretch, Jessie and Sid
|
||||
# Download Debian Initrd for Buster, Bullseye, Stretch, Jessie and Sid
|
||||
# Download firmwares:
|
||||
# bnx2
|
||||
# all non-free (for tigon)
|
||||
|
@ -17,7 +17,7 @@ else
|
|||
TFTP_DIRECTORY="/srv/tftp"
|
||||
fi
|
||||
|
||||
for DISTRO in buster stretch jessie sid; do # For ALL Debian's version
|
||||
for DISTRO in buster bullseye stretch jessie sid; do # For ALL Debian's version
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd "${TEMP_DIR}" > /dev/null
|
||||
|
@ -52,8 +52,8 @@ for DISTRO in buster stretch jessie sid; do # For ALL Debian's version
|
|||
dpkg-deb -x firmware-qlogic_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Download iwlwifi
|
||||
#wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20170823-1_all.deb -O firmware-iwlwifi_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20190717-2_all.deb -O firmware-iwlwifi_all.deb
|
||||
#wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20190717-2_all.deb -O firmware-iwlwifi_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20210315-2_all.deb -O firmware-iwlwifi_all.deb
|
||||
dpkg-deb -x firmware-iwlwifi_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Make a new initrd
|
||||
|
|
Loading…
Reference in New Issue