Commit Graph

742 Commits

Author SHA1 Message Date
Thomas Lamprecht
fecdcd5bab init: add hint that GUI should start and where to find potential errors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-10 14:11:15 +02:00
Thomas Lamprecht
203059a985 init: add missing newline for chorny log message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-10 14:10:35 +02:00
Thomas Lamprecht
0761f0a79a bump version to 7.0-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 12:33:34 +02:00
Thomas Lamprecht
f5439194a8 Revert "bridged network: set bridge HW-address to port one"
This reverts commit eae6e7ef19.

It can be quite subtle on network or HW change, so avoid that - we
plan to set the ifupdown2 option for a static MAC from a bridge port
instead.
2021-07-14 12:33:34 +02:00
Thomas Lamprecht
f9b3baffc1 avoid copying packages into ram, bind-mount into target chroot and extract directly
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 12:33:34 +02:00
Thomas Lamprecht
84d08198a8 code/indentation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 12:07:03 +02:00
Thomas Lamprecht
6ce4f3d7b6 unconfigured: reboot cleaner, avoid sysrq if possible
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 12:05:35 +02:00
Thomas Lamprecht
8fc0b96340 bump version to 7.0-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 13:21:12 +02:00
Thomas Lamprecht
298bdcaf8e unconfigured: explicitly unmount iso9660 only
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 13:20:25 +02:00
Thomas Lamprecht
87da13d0ee bump version to 7.0-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 11:56:03 +02:00
Thomas Lamprecht
6856f73ce9 unconfigured: only log about swap if actually deactivating
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 11:56:03 +02:00
Thomas Lamprecht
cd801ab881 unconfigured: do not unmount /dev to early
matters now with unconfigured being the actual PID 1, earlier this
was handled by the initrd PID 1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 11:56:03 +02:00
Thomas Lamprecht
e13e351038 unconfigured: ifupdown is not used anymore, cope with that
we already terminate everything nicely, so this should not matter..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-12 11:55:59 +02:00
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