finish up all the progs
This commit is contained in:
parent
a41b890653
commit
4b6ac18be9
@ -1,21 +1,7 @@
|
|||||||
pub const standard_installation_prog: &str = r###"#! /bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
SOCKET_PATH="/tmp/pikainstall-status.sock"
|
|
||||||
|
|
||||||
PIKA_INSTALL_CHROOT_PATH={CHROOT_PATH}
|
|
||||||
PIKA_INSTALL_LOCALE="{LOCALE}.UTF-8"
|
|
||||||
PIKA_INSTALL_KEYMAP_BASE={KEYMAP_BASE}
|
|
||||||
PIKA_INSTALL_KEYMAP_VARIANT={KEYMAP_VARIANT}
|
|
||||||
PIKA_INSTALL_TIMEZONE={TIMEZONE}
|
|
||||||
|
|
||||||
touch "/tmp/pika-installer-gtk4-status.txt"
|
|
||||||
echo 'PARTING' | nc -U $SOCKET_PATH
|
|
||||||
|
|
||||||
"###;
|
|
||||||
|
|
||||||
pub const automatic_standard_installation_prog: &str = r###"
|
pub const automatic_standard_installation_prog: &str = r###"
|
||||||
|
|
||||||
|
echo 'PARTING' | nc -U $SOCKET_PATH || true
|
||||||
|
|
||||||
PIKA_INSTALL_AUTO_TARGET_DISK={AUTO_INSTALL_TARGET_DISK}
|
PIKA_INSTALL_AUTO_TARGET_DISK={AUTO_INSTALL_TARGET_DISK}
|
||||||
|
|
||||||
for part in $(/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh get_partitions | grep "$PIKA_INSTALL_AUTO_TARGET_DISK"); do
|
for part in $(/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh get_partitions | grep "$PIKA_INSTALL_AUTO_TARGET_DISK"); do
|
||||||
|
19
src/installation_progress_page/manual_basic.rs
Normal file
19
src/installation_progress_page/manual_basic.rs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
pub const manual_open_part_pikainstall_prog: &str = r###"
|
||||||
|
|
||||||
|
if [ -z $PIKA_INSTALL_KEYMAP_VARIANT ]
|
||||||
|
then
|
||||||
|
pikainstall --manual 1 -r $PIKA_INSTALL_CHROOT_PATH -l $PIKA_INSTALL_LOCALE -k $PIKA_INSTALL_KEYMAP_BASE -t $PIKA_INSTALL_TIMEZONE
|
||||||
|
else
|
||||||
|
pikainstall --manual 1 -r $PIKA_INSTALL_CHROOT_PATH -l $PIKA_INSTALL_LOCALE -k $PIKA_INSTALL_KEYMAP_BASE -t $PIKA_INSTALL_TIMEZONE
|
||||||
|
fi -kv $PIKA_INSTALL_KEYMAP_VARIANT
|
||||||
|
"###;
|
||||||
|
|
||||||
|
pub const manual_locked_part_pikainstall_prog: &str = r###"
|
||||||
|
|
||||||
|
if [ -z $PIKA_INSTALL_KEYMAP_VARIANT ]
|
||||||
|
then
|
||||||
|
pikainstall --manual 2 -r $PIKA_INSTALL_CHROOT_PATH -l $PIKA_INSTALL_LOCALE -k $PIKA_INSTALL_KEYMAP_BASE -t $PIKA_INSTALL_TIMEZONE
|
||||||
|
else
|
||||||
|
pikainstall --manual 2-r $PIKA_INSTALL_CHROOT_PATH -l $PIKA_INSTALL_LOCALE -k $PIKA_INSTALL_KEYMAP_BASE -t $PIKA_INSTALL_TIMEZONE
|
||||||
|
fi -kv $PIKA_INSTALL_KEYMAP_VARIANT
|
||||||
|
"###;
|
@ -8,6 +8,18 @@ use glib::{clone, closure_local};
|
|||||||
use gtk::{gio, glib};
|
use gtk::{gio, glib};
|
||||||
use std::{cell::RefCell, fs, ops::Deref, path::Path, process::Command, rc::Rc};
|
use std::{cell::RefCell, fs, ops::Deref, path::Path, process::Command, rc::Rc};
|
||||||
|
|
||||||
|
pub const standard_installation_prog: &str = r###"#! /bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SOCKET_PATH="/tmp/pikainstall-status.sock"
|
||||||
|
|
||||||
|
PIKA_INSTALL_CHROOT_PATH={CHROOT_PATH}
|
||||||
|
PIKA_INSTALL_LOCALE="{LOCALE}.UTF-8"
|
||||||
|
PIKA_INSTALL_KEYMAP_BASE={KEYMAP_BASE}
|
||||||
|
PIKA_INSTALL_KEYMAP_VARIANT={KEYMAP_VARIANT}
|
||||||
|
PIKA_INSTALL_TIMEZONE={TIMEZONE}
|
||||||
|
"###;
|
||||||
|
|
||||||
pub fn create_installation_script(
|
pub fn create_installation_script(
|
||||||
language_selection_text_refcell: &Rc<RefCell<PikaLocale>>,
|
language_selection_text_refcell: &Rc<RefCell<PikaLocale>>,
|
||||||
keymap_selection_text_refcell: &Rc<RefCell<PikaKeymap>>,
|
keymap_selection_text_refcell: &Rc<RefCell<PikaKeymap>>,
|
||||||
|
Loading…
Reference in New Issue
Block a user