Upload files to "/"
This commit is contained in:
42
lbs
Normal file
42
lbs
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
clear
|
||||
echo "INSTALLING/UPDATING..."
|
||||
sudo apt install -y live-build
|
||||
echo "================="
|
||||
echo "LIVE-BUILD SCRIPT"
|
||||
echo " VER. 251203 "
|
||||
echo "================="
|
||||
echo "NAME:"
|
||||
read name
|
||||
#echo "BASE DISTRO:" (DEBIAN/UBUNTU/MINT)
|
||||
#read distro
|
||||
echo "BASE RELEASE:"
|
||||
read release
|
||||
echo "PACKAGE LIST TO INSTALL:"
|
||||
read pkgs
|
||||
#echo "HOOKS"
|
||||
#read hooks
|
||||
mkdir lb; cd lb
|
||||
mkdir $name; cd $name
|
||||
sudo lb clean --all && rm -rf config cache local
|
||||
#"--win32-loader" dropped with Debian 13 Trixie
|
||||
lb config --apt-recommends true --backports true --system live --memtest memtest86+ --debian-installer-gui true --debian-installer live --bootappend-live "boot=live components quiet splash hostname=$name toram" -d $release --mode debian --parent-distribution $release --parent-debian-installer-distribution $release --archive-areas "main contrib non-free non-free-firmware" --linux-packages "linux-image linux-headers" true --uefi-secure-boot auto --security true --updates true -b iso-hybrid --binary-filesystem ext4 --image-name $name --hdd-label $name --iso-application $name
|
||||
echo "$pkgs" >> config/package-lists/my.list.chroot
|
||||
mkdir -p config/includes.chroot_after_packages/etc/skel/.local/; mkdir -p config/includes.chroot_after_packages/etc/skel/.config/
|
||||
echo "COPY USER FILES..."
|
||||
xdg-open config/includes.chroot_after_packages/etc/skel;
|
||||
echo "ENTER TO CONTINUE"
|
||||
read -n1
|
||||
echo "COPY DEB PACKAGE FILES TO INSTALL..."
|
||||
xdg-open config/packages.chroot;
|
||||
echo "ENTER TO CONTINUE"
|
||||
read -n1
|
||||
#echo "COPY HOOKS..."
|
||||
#xdg-open config/hooks;
|
||||
#echo "ENTER TO CONTINUE"
|
||||
#read -n1
|
||||
echo "PESS ENTER TO BUILD ISO"
|
||||
read -n1
|
||||
sudo lb build
|
||||
|
||||
27
vbs
Normal file
27
vbs
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
#VCS VIRT-BUILDER SCRIPT
|
||||
|
||||
#sudo apt update; sudo apt install libguestfs-tools
|
||||
|
||||
echo "FULL IMAGE FILE NAME:"
|
||||
read name
|
||||
#echo "HOSTNAME:"
|
||||
#read hostname
|
||||
#echo "FORMAT: [RAW | QCOW2]"
|
||||
#read format
|
||||
virt-builder -l
|
||||
echo "BASE:"
|
||||
read base
|
||||
echo "PACKAGES:"
|
||||
read pkgs
|
||||
echo "FILE:"
|
||||
read file
|
||||
#echo "IMAGE USER:"
|
||||
#read user
|
||||
#echo "IMAGE PASSWORD:"
|
||||
#read pw
|
||||
echo "SET ROOT PASSWORD:"
|
||||
read rpw
|
||||
|
||||
virt-builder $base --format qcow2 -o $name.qcow2 --network --install qemu-guest-agent,$pkgs --root-password $rpw --copy-in $file:/bin/ #--password $user:$pw #--hostname $hostname --update
|
||||
Reference in New Issue
Block a user