]> git.proxmox.com Git - pve-installer.git/log
pve-installer.git
3 years agobump version to 7.0-3
Thomas Lamprecht [Wed, 23 Jun 2021 21:03:27 +0000 (23:03 +0200)]
bump version to 7.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopve: enable BTRFS support on installation
Thomas Lamprecht [Wed, 23 Jun 2021 13:20:17 +0000 (15:20 +0200)]
pve: enable BTRFS support on installation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopid1: shutdown: send a more friendly TERM signal first
Thomas Lamprecht [Wed, 23 Jun 2021 12:42:35 +0000 (14:42 +0200)]
pid1: shutdown: send a more friendly TERM signal first

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agostorage/raid: adapt note depending if ZFS or BTRFS is selected
Thomas Lamprecht [Wed, 23 Jun 2021 12:40:59 +0000 (14:40 +0200)]
storage/raid: adapt note depending if ZFS or BTRFS is selected

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: make package also depend on ProxmoxInstallerSetup module
Thomas Lamprecht [Wed, 23 Jun 2021 12:39:49 +0000 (14:39 +0200)]
buildsys: make package also depend on ProxmoxInstallerSetup module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix 'disable' flag on local storage when using btrfs
Wolfgang Bumiller [Wed, 23 Jun 2021 12:15:11 +0000 (14:15 +0200)]
fix 'disable' flag on local storage when using btrfs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobuildsys: fix upload targets package variable
Thomas Lamprecht [Tue, 15 Jun 2021 13:08:16 +0000 (15:08 +0200)]
buildsys: fix upload targets package variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 7.0-2
Thomas Lamprecht [Tue, 15 Jun 2021 13:07:07 +0000 (15:07 +0200)]
bump version to 7.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: install busybox applets
Thomas Lamprecht [Tue, 15 Jun 2021 13:03:09 +0000 (15:03 +0200)]
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>
3 years agounconfigured: heuristically detect high-dpi and adapt font/GDK_SCALE
Thomas Lamprecht [Tue, 15 Jun 2021 12:56:26 +0000 (14:56 +0200)]
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>
3 years agounconfigured: add some more newline to log messages
Thomas Lamprecht [Tue, 15 Jun 2021 12:55:23 +0000 (14:55 +0200)]
unconfigured: add some more newline to log messages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: allow very crude and manual wlan management through iwd
Thomas Lamprecht [Mon, 14 Jun 2021 13:55:51 +0000 (15:55 +0200)]
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>
3 years agounconfigured: set hostname before debug shell
Thomas Lamprecht [Mon, 14 Jun 2021 13:55:08 +0000 (15:55 +0200)]
unconfigured: set hostname before debug shell

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: reboot: explicitly unnmount /dev/pts /dev/shm too
Thomas Lamprecht [Mon, 14 Jun 2021 12:04:28 +0000 (14:04 +0200)]
unconfigured: reboot: explicitly unnmount /dev/pts /dev/shm too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: handle being the new PID 1
Thomas Lamprecht [Mon, 14 Jun 2021 12:03:22 +0000 (14:03 +0200)]
unconfigured: handle being the new PID 1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: adapt some log messages
Thomas Lamprecht [Mon, 14 Jun 2021 12:02:09 +0000 (14:02 +0200)]
unconfigured: adapt some log messages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: cmdline parse: override shellcheck and drop unused variable
Thomas Lamprecht [Mon, 14 Jun 2021 10:51:34 +0000 (12:51 +0200)]
unconfigured: cmdline parse: override shellcheck and drop unused variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: fix getting swap devices
Thomas Lamprecht [Mon, 14 Jun 2021 10:35:04 +0000 (12:35 +0200)]
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>
3 years agodisk preparation: more granular progress report for cleaning up disks
Thomas Lamprecht [Mon, 14 Jun 2021 10:04:50 +0000 (12:04 +0200)]
disk preparation: more granular progress report for cleaning up disks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoclean disk: pass all partitions to wipe2fs and simple zap partitions later
Thomas Lamprecht [Mon, 14 Jun 2021 09:55:11 +0000 (11:55 +0200)]
clean disk: pass all partitions to wipe2fs and simple zap partitions later

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agounconfigured: whitespace cleanups
Thomas Lamprecht [Fri, 11 Jun 2021 11:18:48 +0000 (13:18 +0200)]
unconfigured: whitespace cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agolvm: always tell lvm to wipe the signatures
Thomas Lamprecht [Fri, 11 Jun 2021 11:12:39 +0000 (13:12 +0200)]
lvm: always tell lvm to wipe the signatures

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 7.0-1
Thomas Lamprecht [Tue, 25 May 2021 10:27:19 +0000 (12:27 +0200)]
bump version to 7.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agooverride grub default config via installer
Thomas Lamprecht [Tue, 25 May 2021 17:51:03 +0000 (19:51 +0200)]
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>
3 years agouse wipefs to clean the disks used for the root filesystem
Thomas Lamprecht [Tue, 25 May 2021 17:50:39 +0000 (19:50 +0200)]
use wipefs to clean the disks used for the root filesystem

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorestructure html in repo and installed package
Thomas Lamprecht [Tue, 25 May 2021 12:34:34 +0000 (14:34 +0200)]
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>
3 years agobuildsys: better clean
Thomas Lamprecht [Tue, 25 May 2021 10:28:17 +0000 (12:28 +0200)]
buildsys: better clean

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowhitespace/code cleanups
Thomas Lamprecht [Tue, 25 May 2021 10:26:38 +0000 (12:26 +0200)]
whitespace/code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodebian: update comapt level to 12 and cleanup
Thomas Lamprecht [Tue, 25 May 2021 10:24:48 +0000 (12:24 +0200)]
debian: update comapt level to 12 and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agomerge installer into single package
Thomas Lamprecht [Tue, 25 May 2021 10:22:28 +0000 (12:22 +0200)]
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>
3 years agobump version to 6.4-2
Thomas Lamprecht [Mon, 26 Apr 2021 16:54:09 +0000 (18:54 +0200)]
bump version to 6.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoalways boot zfs with proxmox-boot-tool
Stoiko Ivanov [Fri, 23 Apr 2021 09:04:51 +0000 (11:04 +0200)]
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>
3 years agoget_device_desc: use correct size units and support TiB
Thomas Lamprecht [Thu, 22 Apr 2021 17:05:54 +0000 (19:05 +0200)]
get_device_desc: use correct size units and support TiB

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocode cleanup
Thomas Lamprecht [Thu, 22 Apr 2021 17:05:21 +0000 (19:05 +0200)]
code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozfs: assume that all devices are boot devices
Thomas Lamprecht [Thu, 22 Apr 2021 15:13:44 +0000 (17:13 +0200)]
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>
3 years agobump version to 6.4-1
Thomas Lamprecht [Fri, 26 Mar 2021 18:47:22 +0000 (19:47 +0100)]
bump version to 6.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoterminated all started daemons in a generic way
Thomas Lamprecht [Fri, 26 Mar 2021 18:45:30 +0000 (19:45 +0100)]
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>
3 years agobump version to 6.4-1
Thomas Lamprecht [Fri, 26 Mar 2021 15:02:15 +0000 (16:02 +0100)]
bump version to 6.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #3165: start chrony after DHCP client for an opportunistic time-sync
Thomas Lamprecht [Fri, 26 Mar 2021 14:43:56 +0000 (15:43 +0100)]
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>
3 years agopve_ fix title in fist page html
Oguz Bektas [Wed, 10 Mar 2021 13:19:30 +0000 (14:19 +0100)]
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>
3 years agofix #3223: fix hardcoded port value in success page html
Oguz Bektas [Wed, 30 Dec 2020 08:42:16 +0000 (09:42 +0100)]
fix #3223: fix hardcoded port value in success page html

3 years agoinstaller: minor language fixup
Dylan Whyte [Fri, 11 Dec 2020 07:55:52 +0000 (08:55 +0100)]
installer: minor language fixup

just some nitpicky changes.

v2:
- remove tag files
@Thomas: Like you thought, they are autogenerated by some vim plugin.
They usually sit quitely in the untracked files, but this time, I guess
I somehow I managed to add them in without noticing.. Apologies!

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agotrack pbs-banner
Thomas Lamprecht [Thu, 10 Dec 2020 19:07:09 +0000 (20:07 +0100)]
track pbs-banner

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoset the keymap on the installer console
Stoiko Ivanov [Tue, 10 Nov 2020 14:15:30 +0000 (15:15 +0100)]
set the keymap on the installer console

this patch partially reverts 8bc528041ba85e1b9bd4c17638a2302088bc19ce
by writing /etc/default/keyboard and running `setupcon` in the background
the delay should not harm the UX in the installer

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agoadd run_in_background
Stoiko Ivanov [Tue, 10 Nov 2020 14:15:29 +0000 (15:15 +0100)]
add run_in_background

certain tasks done during the installer need not block the GUI (e.g. setting
the keymap of the console, to have the correct one set in the shell on vt3)
and take a longer time.

This patch adds a simple run_in_background method, which forks and runs the
provided code in the child. Before exiting the children get reaped.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agomemorize keyboard layout selection
Stoiko Ivanov [Tue, 10 Nov 2020 14:15:28 +0000 (15:15 +0100)]
memorize keyboard layout selection

currently when using the previous/next buttons the keyboard layout gets
defined based on the detected/selected country, even if it was set to a
different value explicitly.

This patch changes the behaviour to only update the layout and set it in
the installer if it got actively changed, or if a different country was
selected

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agocode cleanup
Thomas Lamprecht [Thu, 10 Dec 2020 18:21:57 +0000 (19:21 +0100)]
code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofixup! fix #2518: disk selector: add "deselect all" button
Thomas Lamprecht [Thu, 10 Dec 2020 18:21:29 +0000 (19:21 +0100)]
fixup! fix #2518: disk selector: add "deselect all" button

3 years agodisk selector: shorten ZFS/HW-RAID note
Thomas Lamprecht [Thu, 10 Dec 2020 16:53:04 +0000 (17:53 +0100)]
disk selector: shorten ZFS/HW-RAID note

makes it fit on one line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodisk selector: set min height for scroll window, adapt margins
Thomas Lamprecht [Thu, 10 Dec 2020 17:58:57 +0000 (18:58 +0100)]
disk selector: set min height for scroll window, adapt margins

add more inner margin for scroll bar and reduce outer margins to
avoid to much empty border space.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #2518: disk selector: add "deselect all" button
Thomas Lamprecht [Thu, 10 Dec 2020 16:51:32 +0000 (17:51 +0100)]
fix #2518: disk selector: add "deselect all" button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofactor out hd count variable
Thomas Lamprecht [Thu, 10 Dec 2020 16:48:08 +0000 (17:48 +0100)]
factor out hd count variable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.3-2
Thomas Lamprecht [Tue, 10 Nov 2020 14:03:21 +0000 (15:03 +0100)]
bump version to 6.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotree wide s/e-mail/email/ fixup
Thomas Lamprecht [Tue, 10 Nov 2020 14:02:11 +0000 (15:02 +0100)]
tree wide s/e-mail/email/ fixup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodon't configure vt keyboard during installation
Oguz Bektas [Mon, 9 Nov 2020 15:17:30 +0000 (16:17 +0100)]
don't configure vt keyboard during installation

in create_country_view() when setting the keyboard config
setupcon is too slow, causing installer to hang for some
seconds when switching to/from country view.

setxkbmap is enough during the installation (next step
password & email works fine with different keymaps), vt
is largely unused during it anyway.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agoPBS installer: Language fixup
Dylan Whyte [Mon, 9 Nov 2020 12:11:37 +0000 (13:11 +0100)]
PBS installer: Language fixup

- Correct spelling and grammar
- Minor rewordings for readability

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agobump version to 6.3-1
Thomas Lamprecht [Sun, 8 Nov 2020 18:33:55 +0000 (19:33 +0100)]
bump version to 6.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #3093: allow to automatically reboot on installation success
Thomas Lamprecht [Sun, 8 Nov 2020 18:29:45 +0000 (19:29 +0100)]
fix #3093: allow to automatically reboot on installation success

Only auto reboot if no error happened.

default to on, as this is normally wanted behavior - the success
screem does not allow to do anything else anyway, and the IP address
gets then also showed as issue banner after that reboot.

show some countdown (it's set to 5 seconds, but due some internal
delay it more like 3s)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agohtml: unify fail template
Thomas Lamprecht [Sun, 8 Nov 2020 17:53:51 +0000 (18:53 +0100)]
html: unify fail template

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agohtml: unify success template
Thomas Lamprecht [Sun, 8 Nov 2020 17:50:25 +0000 (18:50 +0100)]
html: unify success template

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoproxinstall: replace dot notation netmask with CIDR notation as primary input
Thomas Lamprecht [Sun, 8 Nov 2020 17:40:45 +0000 (18:40 +0100)]
proxinstall: replace dot notation netmask with CIDR notation as primary input

Use two fields it a single row: [ <address> ] / [ <mask> ]

Make the others also a bit bigger for symmetry.

Adapt html templates respectively.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoproxinstall: add more info to product config
Thomas Lamprecht [Sun, 8 Nov 2020 17:38:46 +0000 (18:38 +0100)]
proxinstall: add more info to product config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agohtml common: cleanup IP config template
Thomas Lamprecht [Sun, 8 Nov 2020 17:37:09 +0000 (18:37 +0100)]
html common: cleanup IP config template

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agohtml common: cleanup ack summary template
Thomas Lamprecht [Sun, 8 Nov 2020 17:34:47 +0000 (18:34 +0100)]
html common: cleanup ack summary template

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopbs: write out email to user.cfg
Thomas Lamprecht [Sun, 8 Nov 2020 17:31:54 +0000 (18:31 +0100)]
pbs: write out email to user.cfg

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosplit out chroot-ed chmod and chown
Thomas Lamprecht [Sat, 7 Nov 2020 09:59:19 +0000 (10:59 +0100)]
split out chroot-ed chmod and chown

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoperlcritic fixes
Thomas Lamprecht [Sat, 7 Nov 2020 09:56:27 +0000 (10:56 +0100)]
perlcritic fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #3057: remove ext3 option from installer
Oguz Bektas [Mon, 5 Oct 2020 12:13:41 +0000 (14:13 +0200)]
fix #3057: remove ext3 option from installer

we can safely remove this from the fs options

nobody uses this anymore, and it just ends up causing problems like in
[0]

[0]: https://forum.proxmox.com/threads/emlink-too-many-links.73108/

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agoset console keymap on language selection
Stoiko Ivanov [Mon, 20 Jul 2020 16:31:16 +0000 (18:31 +0200)]
set console keymap on language selection

This is an enhancement for #2804

Having a shell waiting on vt3, it improves user experience if it has the
same keyboard map as the X11 installer.

This is accomplished by setting the contents of '/etc/default/keyboard' and
then running `setupcon`. Simply calling `loadkeys` would not work, since the
keymaps in debian are generated from the x11 definitions by ckbcomp and then
saved in '/etc/console-setup/'.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agofix 2925: edit /etc/kernel/cmdline unconditionally
Stoiko Ivanov [Wed, 12 Aug 2020 18:12:27 +0000 (20:12 +0200)]
fix 2925: edit /etc/kernel/cmdline unconditionally

currently the installer prepares the ESP disks for ZFS, irrespective of the
boot-mode (EFI, legacy) - in order to enable users to change the boot-mode
in the BIOS and keep the system bootable.

This patch updates /etc/kernel/cmdline in both boot-modes, which is necessary
to make the system actually bootable (else the systemd-boot config uses
the cmdline from the installer).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agobump version to 6.2-3
Thomas Lamprecht [Tue, 7 Jul 2020 13:37:09 +0000 (15:37 +0200)]
bump version to 6.2-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopbs: update installation html texts
Thomas Lamprecht [Tue, 7 Jul 2020 13:23:55 +0000 (15:23 +0200)]
pbs: update installation html texts

Originally-by: Daniela Häsler <daniela@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopartially revert "pbs: create default DS"
Thomas Lamprecht [Fri, 3 Jul 2020 14:57:54 +0000 (16:57 +0200)]
partially revert "pbs: create default DS"

we now can create a datastore on new disk(s) over api/ui so a
default datastore on the root mountpoint makes no sense anymore.
partially reverts commit ca74501dce14088005bd4a998bfe2d25ca5881f6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2804: add a root shell on tty3
Stoiko Ivanov [Fri, 19 Jun 2020 14:25:45 +0000 (16:25 +0200)]
fix #2804: add a root shell on tty3

Tested locally in a VM:
The setsid was necessary to give the bash job-control (otherwise Ctrl+C would
simply kill the shell).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agobump version to 6.2-2
Thomas Lamprecht [Mon, 25 May 2020 19:12:03 +0000 (21:12 +0200)]
bump version to 6.2-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopbs: create default DS
Thomas Lamprecht [Mon, 25 May 2020 19:11:58 +0000 (21:11 +0200)]
pbs: create default DS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agowrite out interfaces address in CIDR notation
Thomas Lamprecht [Mon, 25 May 2020 19:11:39 +0000 (21:11 +0200)]
write out interfaces address in CIDR notation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-5
Thomas Lamprecht [Sun, 10 May 2020 19:21:06 +0000 (21:21 +0200)]
bump version to 6.1-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agounconfigured: don't trap "bad" debug-shell exits
Thomas Lamprecht [Fri, 8 May 2020 09:21:46 +0000 (11:21 +0200)]
unconfigured: don't trap "bad" debug-shell exits

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-4
Thomas Lamprecht [Fri, 24 Apr 2020 17:40:34 +0000 (19:40 +0200)]
bump version to 6.1-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: fix file mode
Thomas Lamprecht [Fri, 24 Apr 2020 17:10:25 +0000 (19:10 +0200)]
followup: fix file mode

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoimprove spice integration
Thomas Lamprecht [Fri, 24 Apr 2020 13:19:09 +0000 (15:19 +0200)]
improve spice integration

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agostart installer in full screen mode
Thomas Lamprecht [Fri, 24 Apr 2020 13:18:35 +0000 (15:18 +0200)]
start installer in full screen mode

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agounconfigured: make agetty listen on tty9
Thomas Lamprecht [Fri, 24 Apr 2020 13:17:26 +0000 (15:17 +0200)]
unconfigured: make agetty listen on tty9

it's a bit brittle and login is weird (enter root user twice, pw
doesn't matters) and once exited it's gone, but it's just for
"emergency debugging" anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agounconfigured: allow pseudo terminals
Thomas Lamprecht [Fri, 24 Apr 2020 12:01:30 +0000 (14:01 +0200)]
unconfigured: allow pseudo terminals

allow to open a terminal in X

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-3
Thomas Lamprecht [Fri, 6 Mar 2020 09:57:57 +0000 (10:57 +0100)]
bump version to 6.1-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix behavior if zfs disks have no by-id path
Aaron Lauterer [Mon, 24 Feb 2020 08:37:23 +0000 (09:37 +0100)]
fix behavior if zfs disks have no by-id path

in some situations it is possible, that a disk does not have a
/dev/disk/by-id path. Reported cases are KVM with virtio-blk [0] and
with VMware player / workstation when using the paravirtual SCSI disk
types [1]. It can be reproduced in Proxmox VE by using virtio-blk disks
for the VM.

> The issue at hand happens because udev does not create the
> /dev/disk/by-id symlink in
> '/lib/udev/rules.d/60-persistent-storage.rules', since it does
> not have a serial-number for the device (which in the virtio-blk case
> is in turn maybe caused by qemu-server not adding one to the
> commandline).
Quoted from [2]

This regression was introduced with commit
e1b490865f750e08f6c9c6b7e162e7def9dcc411 which always replaced the disks
in the $vdev variable even if the result of the by-id lookup was
`undef`. Thus the paths did not point to any valid disk and the zpool
creation failed.

This patch replaces the disk paths with by-id paths only if they are
present.

[0] https://forum.proxmox.com/threads/installation-on-raidz-1-fails.65603/
[1] https://forum.proxmox.com/threads/not-install-promox-6-1-zfs-0-04-disk-vmware-15-pro.65269/
[2] https://pve.proxmox.com/pipermail/pve-devel/2020-February/041841.html

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agoRevert "drop unused policy-disable-rc.d"
Stoiko Ivanov [Wed, 19 Feb 2020 10:54:09 +0000 (11:54 +0100)]
Revert "drop unused policy-disable-rc.d"

This reverts commit 8ee12a1c34f9b5980cb382aa2bb01855349a10a5.

`policy-rc.d` invocation is still used by deb-systemd-invoke (1p), despite
it's by now unfitting name.

The policy-rc.d script the installer placed into the chroot prevents the
starting of services by (debianized) maintainer-scripts [0].
This should reduce installation time on one hand, and on the other hand does
mask errors in maintainer-scripts, which error out if no systemd is running
(e.g. inside the chroot)

Noticed the problem, when testing an unrelated patch and running into
an aborted installtion, due to a, already fixed, glitch (missing '||true')
in pve-lxc's postinst script.

[0] https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt
   (did not find anything more current, contradicting the information there)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agohtml: tree wide trailing whitespace cleanup
Thomas Lamprecht [Thu, 6 Feb 2020 11:37:44 +0000 (12:37 +0100)]
html: tree wide trailing whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoavoid doing package specific cleanups installer
Thomas Lamprecht [Thu, 6 Feb 2020 11:35:08 +0000 (12:35 +0100)]
avoid doing package specific cleanups installer

Packages which we have under control have to ensure themself that the
correct permissions are set, else the "install on top of Debian" also
fails. It just crowd proxinstall unecessarily, so avoid to add new
ones if possible. This specific one is handled in the respective
package since quite a bit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix product names according to branding guideline
Thomas Lamprecht [Thu, 6 Feb 2020 11:32:39 +0000 (12:32 +0100)]
fix product names according to branding guideline

IOW, do not drop the whitespace between words..

[0]: https://www.proxmox.com/images/proxmox/Proxmox-Corporate-Brandguideline-2018.pdf

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopbs: disable bridged network
Thomas Lamprecht [Thu, 6 Feb 2020 11:07:30 +0000 (12:07 +0100)]
pbs: disable bridged network

We do not host any guests or the like here, so a bridged setup is nor
really required. Disable it for now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoPBS: drop obvious alpha from SVG banner
Thomas Lamprecht [Thu, 6 Feb 2020 11:04:06 +0000 (12:04 +0100)]
PBS: drop obvious alpha from SVG banner

If, we want to display the version (ISO name?) in a dynamic way for
all products.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadapt installer for pbs alpha build
Oguz Bektas [Fri, 31 Jan 2020 15:11:55 +0000 (16:11 +0100)]
adapt installer for pbs alpha build

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agodrop unused policy-disable-rc.d
Thomas Lamprecht [Sat, 1 Feb 2020 13:34:31 +0000 (14:34 +0100)]
drop unused policy-disable-rc.d

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoumount testdir recursively in check-* and clean
Stoiko Ivanov [Fri, 29 Nov 2019 10:53:44 +0000 (11:53 +0100)]
umount testdir recursively in check-* and clean

recursively unmount testdir before removing it. This prevents the subsequent
call to try to remove files in potentially still bindmounted /proc, /sys, /dev
filesystems.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agorestrict admin email to same format as the JSONSchema
Dominik Csapak [Thu, 28 Nov 2019 12:39:56 +0000 (13:39 +0100)]
restrict admin email to same format as the JSONSchema

Use the same regex as the 'email' format in JSONSchema (copied from there).
Otherwise, users can enter an email address which does not match our
schema and breaks the userlist API Call with a 'return value
verification failed', and one cannot rectify this via the gui
(the user has to manually edit the user.cfg or set the email via
pveum)

i noticed this while testing and using the 'insert emoji' menu in the
context menu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 6.1-2
Thomas Lamprecht [Wed, 27 Nov 2019 18:20:51 +0000 (19:20 +0100)]
bump version to 6.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: add fixme comment with buglink for dosfstools cluster size issue
Thomas Lamprecht [Wed, 27 Nov 2019 18:15:17 +0000 (19:15 +0100)]
followup: add fixme comment with buglink for dosfstools cluster size issue

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agouse by-id paths for all vdevs on pool creation
Stoiko Ivanov [Wed, 27 Nov 2019 16:06:59 +0000 (17:06 +0100)]
use by-id paths for all vdevs on pool creation

currently only the first vdev of a ZFS rpool gets created with the stable
/dev/by-id paths, all later vdevs (in a RAID0 or RAID10 setup) are left as
sdX.

By iterating over all disks in the pool and replacing their occurence with
their by-id path we get consistent and recommended names for all vdevs.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>