Commit Graph

742 Commits

Author SHA1 Message Date
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
Dylan Whyte
c455665230 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>
2020-12-15 14:44:14 +01:00
Thomas Lamprecht
002b27d2b7 track pbs-banner
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-12-10 20:07:09 +01:00
Stoiko Ivanov
2663e17182 set the keymap on the installer console
this patch partially reverts 8bc528041b
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>
2020-12-10 20:04:52 +01:00
Stoiko Ivanov
0e63147908 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>
2020-12-10 20:04:52 +01:00
Stoiko Ivanov
d92ada4e1d 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>
2020-12-10 20:04:52 +01:00
Thomas Lamprecht
2cdba397f0 code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-12-10 19:21:57 +01:00
Thomas Lamprecht
0bc39c50f0 fixup! fix #2518: disk selector: add "deselect all" button 2020-12-10 19:21:29 +01:00
Thomas Lamprecht
8f38d1a1d5 disk selector: shorten ZFS/HW-RAID note
makes it fit on one line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-12-10 19:01:29 +01:00
Thomas Lamprecht
6d8b856492 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>
2020-12-10 19:00:57 +01:00
Thomas Lamprecht
3235f39bf7 fix #2518: disk selector: add "deselect all" button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-12-10 18:53:36 +01:00
Thomas Lamprecht
04fa0758d3 factor out hd count variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-12-10 17:48:08 +01:00
Thomas Lamprecht
e93199d2d1 bump version to 6.3-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-10 15:03:21 +01:00
Thomas Lamprecht
b11c55ff0e tree wide s/e-mail/email/ fixup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-10 15:02:11 +01:00
Oguz Bektas
8bc528041b 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>
2020-11-09 19:57:24 +01:00
Dylan Whyte
9d89231aa6 PBS installer: Language fixup
- Correct spelling and grammar
- Minor rewordings for readability

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
2020-11-09 13:34:19 +01:00
Thomas Lamprecht
7dc66ff788 bump version to 6.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 19:35:52 +01:00
Thomas Lamprecht
dfc02f3c70 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>
2020-11-08 19:29:47 +01:00
Thomas Lamprecht
1fdb7014dd html: unify fail template
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 19:06:37 +01:00
Thomas Lamprecht
cfb923645a html: unify success template
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 19:06:37 +01:00
Thomas Lamprecht
cc120d790d 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>
2020-11-08 18:44:10 +01:00
Thomas Lamprecht
b10074d176 proxinstall: add more info to product config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 18:44:10 +01:00
Thomas Lamprecht
7fcebc9acd html common: cleanup IP config template
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 18:44:10 +01:00
Thomas Lamprecht
bc3b48b61d html common: cleanup ack summary template
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 18:44:10 +01:00
Thomas Lamprecht
e32b8d2dc8 pbs: write out email to user.cfg
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 18:44:05 +01:00
Thomas Lamprecht
341a93b795 split out chroot-ed chmod and chown
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-08 16:59:38 +01:00
Thomas Lamprecht
eaeccd9f99 perlcritic fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-07 10:56:27 +01:00
Oguz Bektas
0abf0d3683 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>
2020-10-22 18:59:24 +02:00
Stoiko Ivanov
07ec6825f4 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>
2020-08-13 12:45:41 +02:00
Stoiko Ivanov
d8530b7441 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>
2020-08-13 12:43:30 +02:00
Thomas Lamprecht
86ebed3b45 bump version to 6.2-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-07 15:37:09 +02:00
Thomas Lamprecht
827825e2a6 pbs: update installation html texts
Originally-by: Daniela Häsler <daniela@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-07 15:35:32 +02:00
Thomas Lamprecht
e0837b92e9 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 ca74501dce

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 16:58:00 +02:00
Stoiko Ivanov
909936b54c 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>
2020-06-24 10:52:26 +02:00
Thomas Lamprecht
ba0efb128e bump version to 6.2-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-25 22:36:35 +02:00
Thomas Lamprecht
ca74501dce pbs: create default DS
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-25 22:36:35 +02:00
Thomas Lamprecht
b1838e1ecd write out interfaces address in CIDR notation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-25 21:11:39 +02:00
Thomas Lamprecht
c960597435 bump version to 6.1-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-10 21:21:18 +02:00