Hardware fixes: issue version, installer Cyrillic, console TUIs (0.9.2)
build / build (push) Canceled after 0s

- /etc/issue shows the Das OS version instead of the kernel's; the server
  installer carries it into the installed system.
- das-server-installer: setfont -C /dev/tty0 before the language menu
  (sudo runs it in its own pty, so the Cyrillic was drawn as Latin), and
  floppy drives are no longer offered as install targets.
- ncdu on the desktop image and in das-server 0.4.0.
- das-shell 0.2.0: each prompt line sets its own color; the dbanner start
  screen buttons are no longer covered by the key bar; on the Linux
  console (TERM=linux) dprompt and dbanner draw solid borders and swap
  the glyphs that no console font has (▊▎▔▁ and others) for ones it has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
das
2026-10-21 19:21:47 +03:00
co-authored by Claude Opus 5.5
parent 94b1bf5f8b
commit 6564d1eb17
17 changed files with 83 additions and 26 deletions
@@ -164,22 +164,24 @@ list_disks() {
fi
lsblk -dpno NAME,TYPE,RO,SIZE,MODEL | while read -r name type ro size model; do
[[ $type == disk && $ro == 0 && $name != "$live" ]] || continue
[[ $name == /dev/zram* || $name == /dev/loop* ]] && continue
[[ $name == /dev/zram* || $name == /dev/loop* || $name == /dev/fd* ]] && continue
printf '%s\t%s %s\n' "$name" "$size" "${model:-}"
done
}
ask_language() {
local choice
# The default console font shows Cyrillic as Latin look-alikes, so load one
# with Cyrillic before the first "Українська". sudo runs us on its own pty
# (tty says /dev/pts/N), so name the console; serial and ssh have TERM other
# than linux and no font to set.
[[ $TERM == linux ]] && { setfont -C /dev/tty0 cyr-sun16 2>/dev/null || true; }
choice=$(dialog --backtitle "Das OS Server" --title "Das OS Server" \
--default-item "$lang" --menu "Language / Мова:" 10 50 2 \
en "English" uk "Українська" 3>&1 1>&2 2>&3) || cancelled
lang=$choice
if [[ $lang == uk ]]; then
LOCALE=uk_UA.UTF-8
# The default console font has no Cyrillic (a font needs a Unicode table,
# .psfu); there is no font to set on serial or ssh
case $(tty) in /dev/tty[0-9]*) setfont cyr-sun16 2>/dev/null || true ;; esac
fi
}
@@ -404,8 +406,9 @@ disable_service() {
configure() {
local home
# The live image's /etc/issue tells how to log in to the live system
printf 'Das OS Server \\r (\\l)\n\n' >"$target/etc/issue"
# The live image's /etc/issue tells how to log in to the live system: keep
# its first line, with the Das OS version
printf '%s\n\n' "$(head -n1 /etc/issue)" >"$target/etc/issue"
echo "$HOST_NAME" >"$target/etc/hostname"
if ! grep -q "[[:space:]]$HOST_NAME\$" "$target/etc/hosts"; then
printf '127.0.1.1\t%s\n' "$HOST_NAME" >>"$target/etc/hosts"
+1 -1
View File
@@ -1,6 +1,6 @@
# Template file for 'das-server-installer'
pkgname=das-server-installer
version=0.4.0
version=0.5.0
revision=1
depends="bash dialog das-install-common btrfs-progs dosfstools gptfdisk parted
rsync util-linux grub grub-x86_64-efi efibootmgr"