Skip to content
Snippets Groups Projects
Commit d8b0bcdb authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Update preseeding for stretch

Related to T761
parent 6d78b5c5
No related branches found
No related tags found
No related merge requests found
...@@ -2,26 +2,11 @@ ...@@ -2,26 +2,11 @@
set -e set -e
cat >/etc/apt/sources.list.d/backports.list <<EOF
# This file is managed by Puppet. DO NOT EDIT.
# backports
deb http://deb.debian.org/debian/ jessie-backports main
EOF
cat >/etc/apt/preferences.d/puppet.pref <<EOF
# This file is managed by Puppet. DO NOT EDIT.
Explanation: Pin puppet dependencies to backports
Package: facter hiera puppet puppet-common puppetmaster puppetmaster-common puppetmaster-passenger ruby-deep-merge
Pin: release n=jessie-backports
Pin-Priority: 990
EOF
apt-get update apt-get update
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y dist-upgrade apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y dist-upgrade
augtool << "EOF" augtool << "EOF"
set /files/etc/puppet/puppet.conf/main/pluginsync true
set /files/etc/puppet/puppet.conf/main/server pergamon.internal.softwareheritage.org set /files/etc/puppet/puppet.conf/main/server pergamon.internal.softwareheritage.org
save save
EOF EOF
......
...@@ -22,7 +22,7 @@ QM_CREATE_CMD = ( ...@@ -22,7 +22,7 @@ QM_CREATE_CMD = (
"-sockets {sockets} " "-sockets {sockets} "
"-startup {startup} " "-startup {startup} "
"{disks} " "{disks} "
"-args '-kernel /tmp/linux -initrd /tmp/initrd_{vmid}.gz'" "-args '-kernel /tmp/linux -initrd /tmp/initrd_{vmid}.gz -append net.ifnames=0'"
) )
CPIO_CMDS = "cd /tmp; cp preseed_{hostname}.cfg preseed.cfg; (cat initrd.gz; echo preseed.cfg | cpio -Hnewc --quiet -o | gzip -c) > initrd_{vmid}.gz" CPIO_CMDS = "cd /tmp; cp preseed_{hostname}.cfg preseed.cfg; (cat initrd.gz; echo preseed.cfg | cpio -Hnewc --quiet -o | gzip -c) > initrd_{vmid}.gz"
......
...@@ -160,7 +160,7 @@ d-i partman-auto/init_automatically_partition select biggest_free ...@@ -160,7 +160,7 @@ d-i partman-auto/init_automatically_partition select biggest_free
# name must be given in traditional, non-devfs format (so e.g. /dev/sda # name must be given in traditional, non-devfs format (so e.g. /dev/sda
# and not e.g. /dev/discs/disc0/disc). # and not e.g. /dev/discs/disc0/disc).
# For example, to use the first SCSI/SATA hard disk: # For example, to use the first SCSI/SATA hard disk:
d-i partman-auto/disk string /dev/sda d-i partman-auto/disk string /dev/vda
# In addition, you'll need to specify the method to use. # In addition, you'll need to specify the method to use.
# The presently available methods are: # The presently available methods are:
# - regular: use the usual partition types for your architecture # - regular: use the usual partition types for your architecture
......
  • Phabricator Migration user @phabricator-migration ·
    Owner

    Some references in the commit message have been migrated:

    • T761 is now infra/sysadm-environment#761
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment