Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndnoVember:Live:Ubuntu
debian-live
config.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File config.sh of Package debian-live
#!/bin/bash #====================================== # Functions... #-------------------------------------- test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile #====================================== # Greeting... #-------------------------------------- echo "Configure image: [${kiwi_iname}]..." # On Debian based distributions the kiwi built in way # to setup locale, keyboard and timezone via systemd tools # does not work because not(yet) provided by the distribution. # Thus the following manual steps to make the values provided # in the image description effective needs to be done. # #======================================= # Setup system locale #--------------------------------------- #echo "LANG=${kiwi_language}" > /etc/locale.conf #======================================= # Setup system keymap #--------------------------------------- #echo "KEYMAP=${kiwi_keytable}" > /etc/vconsole.conf #echo "FONT=eurlatgr.psfu" >> /etc/vconsole.conf #echo "FONT_MAP=" >> /etc/vconsole.conf #echo "FONT_UNIMAP=" >> /etc/vconsole.conf #======================================= # Setup system timezone #--------------------------------------- [ -f /etc/localtime ] && rm /etc/localtime ln -s /usr/share/zoneinfo/${kiwi_timezone} /etc/localtime #======================================= # Setup HW clock to UTC #--------------------------------------- #echo "0.0 0 0.0" > /etc/adjtime #echo "0" >> /etc/adjtime #echo "UTC" >> /etc/adjtime #====================================== # Deactivate services #-------------------------------------- #baseRemoveService sshd #====================================== # Activate services #-------------------------------------- #baseInsertService sshd #====================================== # Setup default target, multi-user #-------------------------------------- baseSetRunlevel 5 #====================================== # Clear apt-get data #-------------------------------------- apt-get clean rm -r /var/lib/apt/* rm -r /var/cache/apt/* #====================================== # Create sources.list #-------------------------------------- echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" > /etc/apt/sources.list echo "deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list echo "#deb-src http://deb.debian.org/debian/ bullseye main" >> /etc/apt/sources.list echo "deb http://download.opensuse.org/repositories/home:/AndnoVember:/Debian/Debian_11/ /" >> /etc/apt/sources.list echo "deb http://download.opensuse.org/repositories/home:/AndnoVember:/F3D/Debian_11/ /" >> /etc/apt/sources.list echo "deb http://download.opensuse.org/repositories/home:/AndnoVember:/KITScenarist/Debian_11/ /" >> /etc/apt/sources.list #====================================== # Create Live session user #-------------------------------------- # groups: user,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev,bluetooth,scanner # mkpasswd <password> -m des -S `pwgen -s1n 2` LIVEUSER=user /usr/sbin/useradd -m -u 1000 $LIVEUSER -c 'Debian Live user' -p 'gV5rKccpjRIg6' -d /home/$LIVEUSER \ -s /bin/bash -G cdrom,floppy,sudo,audio,dip,video,plugdev,netdev,bluetooth,scanner #====================================== # Autologin #-------------------------------------- [ -f /etc/lightdm/lightdm.conf ] && cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.orig cat > /etc/lightdm/lightdm.conf <<-EOF [Seat:*] allow-guest=false autologin-guest=false autologin-user=$LIVEUSER autologin-user-timeout=0 EOF #====================================== # Default language #-------------------------------------- #LOCALE=ru_RU.UTF-8 #echo "LANG=$LOCALE" > /etc/default/locale #sed -i "/$LOCALE/s/# //" /etc/locale.gen #locale-gen --keep-existing #====================================== # Calamares unpackfs, bootloader #-------------------------------------- sed -i.orig '/source:/s|".*"|"/run/overlay/rootfsbase"|' /etc/calamares/modules/unpackfs.conf sed -i '/sourcefs:/s|".*"|"ext4"|' /etc/calamares/modules/unpackfs.conf sed -i '/destination:/s|".*"|"/"|' /etc/calamares/modules/unpackfs.conf sed -i.orig '/kernel:/s|".*"|"/vmlinuz"|' /etc/calamares/modules/bootloader.conf sed -i '/img:/s|".*"|"/initrd.img"|' /etc/calamares/modules/bootloader.conf sed -i '/fallback:/s|".*"|"/initrd.img.old"|' /etc/calamares/modules/bootloader.conf
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor