diff --git a/autoinstall b/autoinstall
index f7400c0..0d62f03 100755
--- a/autoinstall
+++ b/autoinstall
@@ -19,7 +19,7 @@ set -u
# don't change! use ./install instead
UNATTENDED="1"
-CMD=(setup_host build_bootstrap build_chroot build_live build_modules_chroot build_modules_live build_iso)
+CMD=(setup_host build_bootstrap build_chroot build_live build_modules_chroot build_iso)
# ============= main ================
diff --git a/install b/install
index eb24258..8d0d7c6 100755
--- a/install
+++ b/install
@@ -19,7 +19,7 @@ set -u
# don't change! use ./autoinstall instead
UNATTENDED="0"
-CMD=(setup_host build_bootstrap build_chroot build_live build_modules_chroot build_modules_live build_iso)
+CMD=(setup_host build_bootstrap build_chroot build_live build_modules_chroot build_iso)
# ============= main ================
diff --git a/linux-live/aptsources/bullseye.list b/linux-live/aptsources/bullseye.list
new file mode 100644
index 0000000..f7232e8
--- /dev/null
+++ b/linux-live/aptsources/bullseye.list
@@ -0,0 +1,5 @@
+deb http://deb.debian.org/debian/ bullseye main
+deb-src http://deb.debian.org/debian/ bullseye main
+
+deb http://security.debian.org/debian-security bullseye-security main
+deb-src http://security.debian.org/debian-security bullseye-security main
diff --git a/linux-live/basesystem/01-casper/install b/linux-live/basesystem/01-casper/install
deleted file mode 100644
index 637d470..0000000
--- a/linux-live/basesystem/01-casper/install
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-set -e # exit on error
-set -o pipefail # exit on pipeline error
-set -u # treat unset variable as error
-
-SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
-
-# install packages
-if [ -f $SCRIPT_DIR/package.list ]; then
- #sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
- $APT_CMD update >>$OUTPUT 2>&1 &&
- #sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
- $APT_CMD install $APT_OPTIONS \
- $(grep -vE "^\s*#" $SCRIPT_DIR/package.list | tr "\n" " ") >>$OUTPUT 2>&1
-fi
diff --git a/linux-live/basesystem/01-casper/package.list b/linux-live/basesystem/01-casper/package.list
deleted file mode 100644
index bfab0fd..0000000
--- a/linux-live/basesystem/01-casper/package.list
+++ /dev/null
@@ -1,17 +0,0 @@
-# since we work without modules, we install everything in one file
-# main
-casper
-lupin-casper
-discover
-laptop-detect
-os-prober
-network-manager
-net-tools
-wireless-tools
-# gui
-xubuntu-core^
-ubiquity
-ubiquity-casper
-ubiquity-frontend-gtk
-ubiquity-slideshow-xubuntu
-ubiquity-ubuntu-artwork
\ No newline at end of file
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/casper.conf b/linux-live/basesystem/01-casper/rootcopy/etc/casper.conf
deleted file mode 100644
index ae7dde1..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/casper.conf
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file should go in /etc/casper.conf
-# Supported variables are:
-# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM, FLAVOUR
-
-export USERNAME="live"
-export USERFULLNAME="Live session user"
-export HOST="minios"
-export BUILD_SYSTEM="Ubuntu"
-
-# USERNAME and HOSTNAME as specified above won't be honoured and will be set to
-# flavour string acquired at boot time, unless you set FLAVOUR to any
-# non-empty string.
-
-# export FLAVOUR="Ubuntu"
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/issue b/linux-live/basesystem/01-casper/rootcopy/etc/issue
deleted file mode 100644
index 7e33ac0..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/issue
+++ /dev/null
@@ -1,2 +0,0 @@
-Welcome to MiniOS! \n \l
-
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/helpers.rc b/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/helpers.rc
deleted file mode 100644
index fc0f325..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/helpers.rc
+++ /dev/null
@@ -1 +0,0 @@
-WebBrowser=google-chrome
\ No newline at end of file
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-19/16093657651.desktop b/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-19/16093657651.desktop
deleted file mode 100644
index 19e8d6c..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-19/16093657651.desktop
+++ /dev/null
@@ -1,15 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Exec=exo-open --launch FileManager %u
-Icon=system-file-manager
-StartupNotify=true
-Terminal=false
-Categories=Utility;X-XFCE;X-Xfce-Toplevel;
-OnlyShowIn=XFCE;
-X-XFCE-MimeType=inode/directory;x-scheme-handler/trash;
-Name=File Manager
-Name[ru]=Файловый менеджер
-Comment=Browse the file system
-Comment[ru]=Просмотреть файловую систему
-X-XFCE-Source=file:///usr/share/applications/exo-file-manager.desktop
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-23/16093659533.desktop b/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-23/16093659533.desktop
deleted file mode 100644
index 0298d34..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-23/16093659533.desktop
+++ /dev/null
@@ -1,16 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Exec=exo-open --launch WebBrowser %u
-Icon=web-browser
-StartupNotify=true
-Terminal=false
-Categories=Network;X-XFCE;X-Xfce-Toplevel;
-OnlyShowIn=XFCE;
-X-XFCE-MimeType=x-scheme-handler/http;x-scheme-handler/https;
-Name=Web Browser
-Name[ru]=Веб-браузер
-Comment=Browse the web
-Comment[ru]=Смотреть в Интернете
-X-XFCE-Source=file:///usr/share/applications/exo-web-browser.desktop
-Path=
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-24/16093659584.desktop b/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-24/16093659584.desktop
deleted file mode 100644
index 2034e66..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/launcher-24/16093659584.desktop
+++ /dev/null
@@ -1,14 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Exec=exo-open --launch TerminalEmulator
-Icon=utilities-terminal
-StartupNotify=true
-Terminal=false
-Categories=Utility;X-XFCE;X-Xfce-Toplevel;
-OnlyShowIn=XFCE;
-Name=Terminal Emulator
-Name[ru]=Эмулятор терминала
-Comment=Use the command line
-Comment[ru]=Использовать командную строку
-X-XFCE-Source=file:///usr/share/applications/exo-terminal-emulator.desktop
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/whiskermenu-1.rc b/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/whiskermenu-1.rc
deleted file mode 100644
index f0539a5..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/panel/whiskermenu-1.rc
+++ /dev/null
@@ -1,68 +0,0 @@
-favorites=ubiquity.desktop
-recent=
-button-title=Applications Menu
-button-icon=MiniOS-white
-button-single-row=false
-show-button-title=false
-show-button-icon=true
-launcher-show-name=true
-launcher-show-description=false
-launcher-show-tooltip=true
-item-icon-size=2
-hover-switch-category=false
-category-show-name=true
-category-icon-size=1
-load-hierarchy=true
-recent-items-max=10
-favorites-in-recent=true
-display-recent-default=false
-position-search-alternate=true
-position-commands-alternate=false
-position-categories-alternate=false
-menu-width=400
-menu-height=500
-menu-opacity=100
-command-settings=xfce4-settings-manager
-show-command-settings=true
-command-lockscreen=xflock4
-show-command-lockscreen=true
-command-switchuser=dm-tool switch-to-greeter
-show-command-switchuser=false
-command-logout=xfce4-session-logout
-show-command-logout=true
-command-menueditor=menulibre
-show-command-menueditor=true
-command-profile=mugshot
-show-command-profile=true
-search-actions=5
-
-[action0]
-name=Man-страницы
-pattern=#
-command=exo-open --launch TerminalEmulator man %s
-regex=false
-
-[action1]
-name=Web-поиск
-pattern=?
-command=exo-open --launch WebBrowser https://duckduckgo.com/?q=%u
-regex=false
-
-[action2]
-name=Википедия
-pattern=!w
-command=exo-open --launch WebBrowser https://en.wikipedia.org/wiki/%u
-regex=false
-
-[action3]
-name=Выполнить в терминале
-pattern=!
-command=exo-open --launch TerminalEmulator %s
-regex=false
-
-[action4]
-name=Открыть URI
-pattern=^(file|http|https):\\/\\/(.*)$
-command=exo-open \\0
-regex=true
-
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
deleted file mode 100644
index 38aef24..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/linux-live/basesystem/01-casper/rootcopy/etc/timezone b/linux-live/basesystem/01-casper/rootcopy/etc/timezone
deleted file mode 100644
index b1f078f..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/etc/timezone
+++ /dev/null
@@ -1 +0,0 @@
-Europe/Moscow
\ No newline at end of file
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/backgrounds/MiniOS.png b/linux-live/basesystem/01-casper/rootcopy/usr/share/backgrounds/MiniOS.png
deleted file mode 100644
index 5716d76..0000000
Binary files a/linux-live/basesystem/01-casper/rootcopy/usr/share/backgrounds/MiniOS.png and /dev/null differ
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/pixmaps/MiniOS-white.svg b/linux-live/basesystem/01-casper/rootcopy/usr/share/pixmaps/MiniOS-white.svg
deleted file mode 100644
index ca13046..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/usr/share/pixmaps/MiniOS-white.svg
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/default.plymouth b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/default.plymouth
deleted file mode 120000
index b251b32..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/default.plymouth
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/plymouth/themes/minios-logo/minios-logo.plymouth
\ No newline at end of file
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/details/details.plymouth b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/details/details.plymouth
deleted file mode 100644
index bd84964..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/details/details.plymouth
+++ /dev/null
@@ -1,4 +0,0 @@
-[Plymouth Theme]
-Name=Details
-Description=Verbose fallback theme
-ModuleName=details
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/fsck-fade.png b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/fsck-fade.png
deleted file mode 100644
index 3ef161a..0000000
Binary files a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/fsck-fade.png and /dev/null differ
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/fsck-fade_16bit.png b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/fsck-fade_16bit.png
deleted file mode 100644
index 3ada9e0..0000000
Binary files a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/fsck-fade_16bit.png and /dev/null differ
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/logo.png b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/logo.png
deleted file mode 100644
index cb8af2d..0000000
Binary files a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/logo.png and /dev/null differ
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/logo_16bit.png b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/logo_16bit.png
deleted file mode 100644
index fbae9b3..0000000
Binary files a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/logo_16bit.png and /dev/null differ
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/minios-logo.plymouth b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/minios-logo.plymouth
deleted file mode 100644
index db7715b..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/minios-logo.plymouth
+++ /dev/null
@@ -1,8 +0,0 @@
-[Plymouth Theme]
-Name=MiniOS Logo
-Description=A theme that features a background with a logo.
-ModuleName=script
-
-[script]
-ImageDir=/usr/share/plymouth/themes/minios-logo
-ScriptFile=/usr/share/plymouth/themes/minios-logo/minios-logo.script
diff --git a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/minios-logo.script b/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/minios-logo.script
deleted file mode 100644
index 0f0c1e1..0000000
--- a/linux-live/basesystem/01-casper/rootcopy/usr/share/plymouth/themes/minios-logo/minios-logo.script
+++ /dev/null
@@ -1,512 +0,0 @@
- /**************************************************************************
- *
- * Copyright (C) 2011 The Xubuntu Community
- * Copyright (C) 2009 Canonical Ltd.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- * Written by: Mad Nick
- *
- **************************************************************************/
-
-/*
- * Related to the screen */
-
-screen_width = Window.GetWidth();
-screen_height = Window.GetHeight();
-screen_x = Window.GetX();
-screen_y = Window.GetY();
-
-/**/
-
-/*
- * Images, check bits per pixel
- * and load images accordingly */
-
-background_image = Image("wallpaper.png");
-passw_dialog_input_image = Image("passw-dialog.png");
-bullet_image = Image("test.png");
-
-bpp = Window.GetBitsPerPixel();
-
-if (bpp == 4) {
-
- logotype_image = Image("logo_16bit.png");
- progress_meter_image = Image("progress-meter_16bit.png");
- progress_fade_image = Image("progress-fade_16bit.png");
- fsck_progress_meter_image = Image("progress-meter_16bit.png");
- fsck_progress_fade_image = Image("fsck-fade_16bit.png");
-
-}
-else {
-
- logotype_image = Image("logo.png");
- progress_meter_image = Image("progress-meter.png");
- progress_fade_image = Image("progress-fade.png");
- fsck_progress_meter_image = Image("progress-meter.png");
- fsck_progress_fade_image = Image("fsck-fade.png");
-
-}
-
-/**/
-
-/*
- * Sprites */
-
-ratio = screen_height / screen_width;
-background_ratio = background_image.GetHeight() / background_image.GetWidth();
-factor = 0;
-
-if (ratio > background_ratio) {
-
- factor = screen_height / background_image.GetHeight();
-
-}
-else {
-
- factor = screen_width / background_image.GetWidth();
-
-}
-
-scaled = background_image.Scale(background_image.GetWidth() * factor, background_image.GetHeight() * factor);
-background_sprite = Sprite(scaled);
-background_sprite.SetX(screen_x + screen_width / 2 - scaled.GetWidth() / 2);
-background_sprite.SetY(screen_y + screen_height / 2 - scaled.GetHeight() / 2);
-
-logotype_sprite = Sprite(logotype_image);
-
-fsck_progress_meter_sprite = Sprite(fsck_progress_meter_image);
-fsck_progress_fade_sprite = Sprite(fsck_progress_fade_image.Scale(1, fsck_progress_fade_image.GetHeight()));
-
-passw_dialog_input_sprite = Sprite(passw_dialog_input_image);
-passw_lbl_sprite = Sprite();
-
-msg_label_sprite = Sprite();
-
-/**/
-
-/*
- * Misc */
-
-counter = 0;
-
-fade_pos_x = (screen_width / 2) - (progress_meter_image.GetWidth() / 2);
-fade_dir = 0; /* 0 = right, 1 = left */
-
-fsck_running = 0;
-fsck_dev_array;
-fsck_dev_counter = 0;
-fsck_fade_in_counter = 0;
-fsck_done_fading = 0;
-
-stars_array;
-stars_n = 0;
-
-//full_msg = "";
-msgs_line = [NULL,NULL,NULL,NULL,NULL];
-
-/**/
-
-/*
- * Debug related */
-
-debug = 0;
-debug_sprite = Sprite();
-
-fun debugOutput(str) {
-
- /*
- * This will print to the top left corner */
- debug_sprite.SetImage(Image.Text(str));
-
-}
-
-/**/
-
-/*
- * Setup the graphics properties */
-logotype_sprite.SetPosition(screen_x + (screen_width / 2) - (logotype_image.GetWidth() / 2), screen_y + (screen_height / 2) - (logotype_image.GetHeight() / 2));
-fsck_progress_meter_sprite.SetPosition(screen_x + (screen_width / 2) - (progress_meter_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 25);
-fsck_progress_fade_sprite.SetPosition(screen_x + (screen_width / 2) - (progress_meter_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 25);
-fsck_progress_meter_sprite.SetOpacity(0);
-fsck_progress_fade_sprite.SetOpacity(0);
-passw_dialog_input_sprite.SetPosition(screen_x + (screen_width / 2) - (passw_dialog_input_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 70);
-passw_dialog_input_sprite.SetOpacity(0);
-passw_lbl_sprite.SetOpacity(0);
-
-spin = 0;
-
-/*
- * this function only goes up to 100
- * because thats all thats needed for
- * the progress meter bar */
-fun atoi(str) {
-
- int = -1;
-
- for (i = 0; i <= 100; i++) {
-
- if (i + "" == str) {
-
- int = i;
-
- break;
-
- }
-
- }
-
- return int;
-
-}
-
-/*
- * This handler will/can be invoked
- * 50 times per second.
- *
- * According to the previous author of the
- * splash script, without this callback
- * the screen is not updated correctly */
-spinner_sprite;
-spinner;
-
-fun refreshHandler() {
-
- if (spin < 3.14 * 2) {
-
- spin = spin + 0.1;
-
- }
- else {
-
- spin = 0;
-
- }
-
- /* if fsck is running or the password is prompted, hide the spinner */
- if (fsck_running == 1 || passw_dialog_input_sprite.GetOpacity() == 1) {
-
- spinner_sprite.SetOpacity(0);
-
- } else {
-
- spinner = Image("spinner.png");
- spinner = spinner.Rotate(spin);
- spinner_sprite = Sprite(spinner);
- spinner_sprite.SetPosition(screen_x + (screen_width / 2) - (spinner.GetWidth() / 2), screen_y + (screen_height / 2) - (spinner.GetHeight() / 2) + 80);
-
- }
-
- if (fade_dir == 0) {
-
- counter++;
-
- if (counter >= 200) {
-
- fade_dir = 1;
-
- }
-
- }
- else {
-
- counter--;
-
- if (counter <= 0) {
-
- fade_dir = 0;
-
- }
-
- }
-
- if ((fsck_running == 1) && (fsck_done_fading == 0)) {
-
-
- fsck_progress_meter_sprite.SetOpacity(fsck_fade_in_counter);
- fsck_progress_fade_sprite.SetOpacity(fsck_fade_in_counter);
-
- if (fsck_fade_in_counter < 1) {
-
- fsck_fade_in_counter+= 0.025;
-
- }
- else {
-
- fsck_done_fading = 1;
-
- }
-
- }
-
-}
-
-Plymouth.SetRefreshFunction (refreshHandler);
-
-/**/
-
-/*
- * This function will display the password related information
- * when being prompt with entering a password */
-fun showPasswordHandler(prompt, stars) {
-
- if (passw_dialog_input_sprite.GetOpacity() == 0 && passw_lbl_sprite.GetOpacity() == 0) {
-
- passw_dialog_input_sprite.SetOpacity(1);
- passw_lbl_sprite.SetOpacity(1);
-
- }
-
- tmp_prompt_image = Image.Text(prompt, 1, 1, 1);
-
- passw_lbl_sprite.SetImage(tmp_prompt_image);
- passw_lbl_sprite.SetPosition(screen_x + (screen_width / 2) - (tmp_prompt_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 50);
-
- for(i = 0; i < stars_n; i++) {
-
- stars_array[i] = NULL;
-
- }
-
- stars_n = 0;
-
- for(i = 0; (i < stars) && (i < 15); i++) {
-
- stars_array[i] = Sprite(bullet_image);
- stars_array[i].SetPosition(screen_x + (((screen_width / 2) - (passw_dialog_input_image.GetWidth() / 2)) + (18 * i)) + 2, screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 75);
- stars_n++;
-
- }
-
-}
-
-Plymouth.SetDisplayPasswordFunction(showPasswordHandler);
-
-/**/
-
-fun displayNormalHandler() {
-
- /*
- * Hide the password dialog and the bullets */
-
- if (passw_dialog_input_sprite.GetOpacity() == 1) {
-
- passw_dialog_input_sprite.SetOpacity(0);
-
- }
-
- if (passw_lbl_sprite.GetOpacity() == 1) {
-
- passw_lbl_sprite.SetOpacity(0);
-
- }
-
- for(i = 0; i < stars_n; i++) {
-
- stars_array[i] = NULL;
-
- }
-
-}
-
-Plymouth.SetDisplayNormalFunction(displayNormalHandler);
-
-fun strlen(string) {
-
- i = 0;
-
- while (String(string).CharAt(i)) {
-
- i++;
-
- }
-
- return i;
-
-}
-
-/*
- * This function will display the most current message */
-fun messageHandler(msg) {
-
- if ((msg == "") || !msg) {
-
- return 0;
-
- }
-
- if (msg.SubString(0, 5) == "keys:") {
-
- msg = msg.SubString(5, strlen(msg));
-
- }
-
- # Get the message without the "fsckd-cancel-msg" prefix as we don't support i18n
- if (msg.SubString(0, 17) == "fsckd-cancel-msg:")
- msg = msg.SubString(17, strlen(msg));
-
- //full_msg += msg + " ";
- for(i = 4; i > 0; i--) {
-
- msgs_line[i] = msgs_line[i - 1];
-
- }
-
- msgs_line[0] = Sprite(Image.Text(msg, 1, 1, 1));
-
- dist = 1;
-
- for(i = 0; i < 5; i++) {
-
- if (msgs_line[i] != NULL) {
-
- msgs_line[i].SetPosition(screen_x + (screen_width / 2) - (msgs_line[i].GetImage().GetWidth() / 2), screen_y + (screen_height - msgs_line[i].GetImage().GetHeight()) - 20*dist);
- dist++;
-
- }
-
- }
-
-}
-
-Plymouth.SetMessageFunction(messageHandler);
-
-/**/
-
-/*
- * Handles the updates passed to the plymouth daemon
- * for example the FSCK data */
-fun statusHandler(status) {
-
- tmp_char;
- status_array[0] = "";
- elem_count = 0;
-
- for (i = 0; String(status).CharAt(i) != ""; i++) {
-
- tmp_char = String(status).CharAt(i);
-
- if (tmp_char != ":") {
-
- status_array[elem_count] += tmp_char;
-
- }
- else {
-
- elem_count++;
- status_array[elem_count] = "";
-
- }
-
- }
-
- if (status_array[0] == "fsck") {
-
- already_added = 0;
-
- if (fsck_running == 0) {
-
- /*
- * use the dedicated message handler for this
- * since there is no messages about fsck checks
- * currently... */
- messageHandler("Routine disk drive check.");
-
- fsck_running = 1;
-
- }
-
- for(i = 0; i < fsck_dev_counter; i++) {
-
- /*
- * check if the device already exist and update
- * the progress only in that case */
- if (fsck_dev_array[i][0] == status_array[1]) {
-
- fsck_dev_array[i][1] = status_array[2]; /* progress */
- already_added = 1;
-
- }
-
- }
-
- /*
- * if the device is not added, then add it */
- if (already_added == 0) {
-
- fsck_dev_array[fsck_dev_counter][0] = status_array[1]; /* device */
- fsck_dev_array[fsck_dev_counter][1] = status_array[2]; /* progress */
- fsck_dev_counter++;
-
- }
-
- /*
- * update the progress */
-
- total = 0;
-
- for(i = 0; i < fsck_dev_counter; i++) {
-
- total += atoi(fsck_dev_array[i][1]);
-
- }
-
- if (fsck_dev_counter > 0) {
-
- /*
- * display the total percentage */
- fsck_progress_fade_sprite.SetImage(fsck_progress_fade_image.Scale((fsck_progress_meter_image.GetWidth() / 100) * (total / fsck_dev_counter), fsck_progress_fade_image.GetHeight()));
-
- }
-
- /**/
-
- /*
- * if the total progress is at maximum,
- * make the progress meter go away,
- * we might want to fade this out... */
- if (total == (100 * fsck_dev_counter)) {
-
- fsck_progress_meter_sprite.SetOpacity(0);
- fsck_progress_fade_sprite.SetOpacity(0);
-
- }
-
- }
-
- # systemd-fsckd pass fsckd::