Commit Graph

979 Commits

Author SHA1 Message Date
Thomas Lamprecht
eae6e7ef19 bridged network: set bridge HW-address to port one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 08:54:52 +02:00
Thomas Lamprecht
78164ad642 btrfs: fix casing for tech preview
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-06 11:19:39 +02:00
Fabian Grünbichler
b13dac4b9c grub: only set special config for ZFS
and handle that one via a snippet instead of touching the main
'/etc/default/grub' config file.

distributor (and disabling os-prober for PVE) are already handled by the
product-specific meta packages via snippets - proxmox-ve was the last to
join this club in 7.0-2.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-06-28 18:26:00 +02:00
Thomas Lamprecht
21d7be6e94 bump version to 7.0-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-24 11:05:08 +02:00
Fabian Grünbichler
2b8fdf3d53 network: sync option names with pve-common
back in 2018, commit 1accc6da659d8a02dcf1c2a636749e6f48fb9c2d
"Inotify : write network config : use modern syntax for options"
changed pve-common's /etc/network/interfaces writer to prefer options
with '-' over those with '_'.

having the installer write the old variant makes any modification of the
vmbr0 interface via the API also change these three lines to the new
variant - so let's do it right from the start.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-06-24 11:00:44 +02:00
Thomas Lamprecht
defb675647 lvcreate: pass --yes to ensure wipesignatures is answered with go-for-it
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-24 11:00:30 +02:00
Thomas Lamprecht
fbd565dfdf clean disk: sort blockdevs by length to clean depth-first
especially relevant for the wipefs call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-24 10:59:58 +02:00
Thomas Lamprecht
fd71643cae run command: code cleanup, return pid from eval
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-24 10:59:18 +02:00
Thomas Lamprecht
3dd7dfaad7 set 'LVM_SUPPRESS_FD_WARNINGS' env to make lvm less noisy
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-24 10:58:54 +02:00
Thomas Lamprecht
f6af796eb7 bump version to 7.0-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-23 23:03:27 +02:00
Thomas Lamprecht
60db595303 pve: enable BTRFS support on installation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-23 15:20:17 +02:00
Thomas Lamprecht
8a13026d0b pid1: shutdown: send a more friendly TERM signal first
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-23 14:42:35 +02:00
Thomas Lamprecht
af35966ce3 storage/raid: adapt note depending if ZFS or BTRFS is selected
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-23 14:40:59 +02:00
Thomas Lamprecht
bb2c578e35 buildsys: make package also depend on ProxmoxInstallerSetup module
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-23 14:39:49 +02:00
Wolfgang Bumiller
b0539ae704 fix 'disable' flag on local storage when using btrfs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-23 14:15:11 +02:00
Thomas Lamprecht
cac97de3d6 buildsys: fix upload targets package variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 15:08:16 +02:00
Thomas Lamprecht
c930ad7526 bump version to 7.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 15:07:07 +02:00
Thomas Lamprecht
291ac3b656 unconfigured: install busybox applets
We may be using a more minimal debootstrap nowadays, but busybox is
still available, so compensate that by telling it to install
symlinks in /bin and /sbin for those applets it knows and are not
already existing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 15:03:13 +02:00
Thomas Lamprecht
cbddb92d5c unconfigured: heuristically detect high-dpi and adapt font/GDK_SCALE
Use the biggest terminus font we can get our hands on, and use the
Uni2 variant, which seems like an OK trade-off (the installer is
rather ascii anyway).

The detection uses the console columns in such away that high-dpi
screen should be detected but just wide-formats (like 21:9) should
not. This is a bit brittle, but even miss-detecting it should still
allow using it (the installer is made for 1024x768, which when
doubled still fits on WQXGA (2560x1600) and mostly on 1440p too.

It could be more robust to depend on edid-decode, but as physical
dimensions are not required there, and even if specified often quite
off, it's not a sure thing either. So go for simple first.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 14:56:35 +02:00
Thomas Lamprecht
fff4bc476a unconfigured: add some more newline to log messages
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 14:55:26 +02:00
Thomas Lamprecht
478b111cb9 unconfigured: allow very crude and manual wlan management through iwd
can for now only work if booted via debug mode as one needs to
manually call iwctl in the debugshell, so only call it in the debug
case. This is currently more of a rough experimental way for the
brave and knowing.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 14:54:25 +02:00
Thomas Lamprecht
d5268f68fc unconfigured: set hostname before debug shell
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 15:57:29 +02:00
Thomas Lamprecht
57a8f6e5fd unconfigured: reboot: explicitly unnmount /dev/pts /dev/shm too
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 15:57:29 +02:00
Thomas Lamprecht
0acbbbf597 unconfigured: handle being the new PID 1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 15:57:29 +02:00
Thomas Lamprecht
4fb3a9c6d6 unconfigured: adapt some log messages
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 14:02:09 +02:00
Thomas Lamprecht
9e5787e5b8 unconfigured: cmdline parse: override shellcheck and drop unused variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 12:51:34 +02:00
Thomas Lamprecht
20d20ee359 unconfigured: fix getting swap devices
Previously we used a ugly hack to extract the device from the whole
line returned by passing it to bash's `set`, which assigns remaining
arguments it does not know about (or after "--") to $1, $2, etc.

This is ugly due to:
* not using "--", so it could break easily
* being quite subtle in general, e.g., shellcheck does not likes
  unquoted variable expansions, so one would add quotes around
  breaking the actual use case

Just use awk to do both the grep and extraction, which is much
clearer to do

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 12:35:11 +02:00
Thomas Lamprecht
408dc55fe7 disk preparation: more granular progress report for cleaning up disks
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 12:04:50 +02:00
Thomas Lamprecht
1250a6d506 clean disk: pass all partitions to wipe2fs and simple zap partitions later
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-14 11:55:11 +02:00
Thomas Lamprecht
000f289d4b unconfigured: whitespace cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-11 13:18:48 +02:00
Thomas Lamprecht
211aeba689 lvm: always tell lvm to wipe the signatures
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-11 13:12:39 +02:00
Thomas Lamprecht
7bd5f9b41a bump version to 7.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:56:52 +02:00
Thomas Lamprecht
871a976603 override grub default config via installer
We used to ship our own grub in the installer, originally due to ZFS
support, but we also used it to setup a slightly modified
`/etc/default/grub`. We do not need a self-build grub for technical
reasons like ZFS support anymore, so avoid the need to ship it and
move over deploying the config changes to the installer.

Just write out the whole config, much easier to see what's going on
compared to some `sed` calls.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:54:32 +02:00
Thomas Lamprecht
80ad382602 use wipefs to clean the disks used for the root filesystem
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:54:32 +02:00
Thomas Lamprecht
029fde309b restructure html in repo and installed package
placing the common stuff top-level and the per-product stuff one
directory-level down allows to access all used resources (css,
images) from a common base path without hacking to much around.

Per-product files are always preferred.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:49:39 +02:00
Thomas Lamprecht
c9b46f9001 buildsys: better clean
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:49:39 +02:00
Thomas Lamprecht
dbe9a0c9ed whitespace/code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:49:39 +02:00
Thomas Lamprecht
0d4e45a69c debian: update comapt level to 12 and cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:49:39 +02:00
Thomas Lamprecht
c2f72dd67d merge installer into single package
Depends on the install env. having a cd-info file to parse the
product from, which we have since PVE 6.1 ISO release 2.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-25 19:49:39 +02:00
Thomas Lamprecht
61f260bfc5 bump version to 6.4-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-26 18:54:09 +02:00
Stoiko Ivanov
d58ef02ceb always boot zfs with proxmox-boot-tool
proxmox-boot-tool now supports configuring grub to boot from the ESPs
the installer creates on all (bootable) disks - use this approach
for zfs installs.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-04-23 13:24:11 +02:00
Thomas Lamprecht
ceabb291c5 get_device_desc: use correct size units and support TiB
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-22 19:06:08 +02:00
Thomas Lamprecht
89560d15fb code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-22 19:06:08 +02:00
Thomas Lamprecht
82695821a5 zfs: assume that all devices are boot devices
the argument "but if someting in raid0 fails all is dead" is true but
misses the point completely, namely:
* firmware is weird and sometimes allows booting only from certain
  devices, which we cannot know here
* potentially only the boot partition could be corrupted/broken/...
  in which case another dev in the raid 0 could allow successful
  booting

In short, we can only win if we use all devices as boot devices, the
512 MiB lost in some devices are negligible, and they resulted in an
uneven storage space distribution.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-22 19:06:08 +02:00
Thomas Lamprecht
811e0e6d69 bump version to 6.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-26 19:47:22 +01:00
Thomas Lamprecht
d13c196618 terminated all started daemons in a generic way
Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-26 19:45:40 +01:00
Thomas Lamprecht
6d352d07ea bump version to 6.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-26 16:02:15 +01:00
Thomas Lamprecht
150291b3f8 fix #3165: start chrony after DHCP client for an opportunistic time-sync
We had reports about problems stemming from skewed clocks during
installation, especially if their time was in the future during
installation and on first real boot got synced up, certs may not be
valid yet, RRD may has written data before that correcting time-sync
went through and errors afterwards, once time jumped back, and lots
of other issues.

So, depend on the modern and nifty, but still small, NTP
implementation `chrony`. Start its daemon just after we asked for a
DHCP lease, as then it can directly try to sync with one of the
(Debian namespaced) NTP pools time server.

In the worst case (no network, no server available) we are as good as
now, but if chrony can sync the time we avoid lots of issues and
breakages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-26 15:55:08 +01:00
Oguz Bektas
c2843d0435 pve_ fix title in fist page html
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-10 14:33:17 +01:00
Oguz Bektas
5577f86a6e fix #3223: fix hardcoded port value in success page html 2020-12-31 10:31:01 +01:00