Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung |
wiki:livesystem [2020/11/10 21:39] – [Alte Repos entfernen] pulsar | wiki:livesystem [2020/11/11 15:56] (aktuell) – [CHROOT] techguru |
---|
| |
Mit ''chroot'' das Live System betreten | Mit ''chroot'' das Live System betreten |
| |
chroot /media/sicherung/Images_ISOs/secureDVD/imgmount/ | chroot /media/sicherung/Images_ISOs/secureDVD/imgmount/ |
| |
| |
==== Netzwerk deaktivieren ==== | ==== Netzwerk deaktivieren ==== |
| |
Beim 15.2 image folgende Zeile nicht angewendet: | |
| |
In der Datei ''/etc/sysconfig/network/config'' muss alles deaktiviert werden was mit Netzwerk zusammenhängt. | |
| |
| |
... | ... |
| |
<code> | Systemd Dienste deaktivieren mit ''systemctl'' |
l /etc/systemd/system/ | |
total 56 | |
drwxr-xr-x 14 root root 4096 Feb 14 14:36 ./ | |
drwxr-xr-x 5 root root 4096 Sep 30 15:22 ../ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:23 basic.target.wants/ | |
lrwxrwxrwx 1 root root 36 Sep 30 15:23 bootmsg.service -> /usr/lib/systemd/system/klog.service | |
lrwxrwxrwx 1 root root 41 Sep 30 15:26 dbus-org.fedoraproject.FirewallD1.service -> /usr/lib/systemd/system/firewalld.service | |
lrwxrwxrwx 1 root root 44 Sep 30 15:23 dbus-org.freedesktop.Avahi.service -> /usr/lib/systemd/system/avahi-daemon.service | |
lrwxrwxrwx 1 root root 44 Sep 30 15:23 dbus-org.freedesktop.ModemManager1.service -> /usr/lib/systemd/system/ModemManager.service | |
lrwxrwxrwx 1 root root 57 Sep 30 15:25 dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service | |
lrwxrwxrwx 1 root root 40 Sep 30 15:26 default.target -> /usr/lib/systemd/system/runlevel5.target | |
drwxr-xr-x 2 root root 4096 Sep 30 15:26 default.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:22 getty.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:22 graphical.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:26 mdmonitor.service.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:26 multi-user.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:26 network-online.target.wants/ | |
lrwxrwxrwx 1 root root 46 Sep 30 15:26 network.service -> /usr/lib/systemd/system/NetworkManager.service | |
drwxr-xr-x 2 root root 4096 Sep 30 15:23 remote-fs.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:23 sockets.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:22 spice-vdagentd.target.wants/ | |
drwxr-xr-x 2 root root 4096 Sep 30 15:23 sysinit.target.wants/ | |
lrwxrwxrwx 1 root root 39 Sep 30 15:23 syslog.service -> /usr/lib/systemd/system/rsyslog.service | |
drwxr-xr-x 2 root root 4096 Sep 30 15:26 timers.target.wants/ | |
lrwxrwxrwx 1 root root 47 Sep 30 15:22 xdm.service -> /usr/lib/systemd/system/display-manager.service | |
| |
| systemctl disable wicked.service |
| |
rm /etc/systemd/system/network.service | |
rm /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service | |
rm /etc/systemd/system/dbus-org.freedesktop.ModemManager1.service | |
| |
</code> | |
| |
=== Bearbeiten des Boot Menüs vom Grub === | === Bearbeiten des Boot Menüs vom Grub === |
| |
Das Live System(chroot Umgebung) verlassen mit **Strg + D** | Das Live System(chroot Umgebung) verlassen mit **Strg + D** |
| |
| |
Das System aushängen: | Das System aushängen: |
umount /root/rootfsimg | |
| umount /media/sicherung/Images_ISOs/secureDVD/imgmount/proc/ |
bzw. nach neuen Schema: | umount /media/sicherung/Images_ISOs/secureDVD/imgmount/run/ |
sudo umount /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/proc/ | umount /media/sicherung/Images_ISOs/secureDVD/imgmount/sys |
sudo umount /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/run/ | umount /media/sicherung/Images_ISOs/secureDVD/imgmount |
sudo umount /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/sys | |
sudo umount /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount | |
| |
| |
cd /root/squashfs-temp/ | cd /root/squashfs-temp/ |
| |
Den folgenden Kommando für suse152 genutzt: | Den folgenden Kommando erstellt und komprimiert das squashfs-Image ordentlich: |
| |
mksquashfs squashfs-root/ livefs.squashfs -noappend -always-use-fragments -b 1048576 -comp xz -Xbcj x86 | mksquashfs squashfs-root/ livefs.squashfs -noappend -always-use-fragments -b 1048576 -comp xz -Xbcj x86 |
| |
| |
| mv /root/squashfs-temp/livefs.squashfs /var/tmp/linux/LiveOS/squashfs.img |
| |
| |
<code> | <code> |
ws19233:~/suse152_squashfs-temp # l /var/tmp/suse152/LiveOS/ | iglu:~/root_squashfs-temp # l /var/tmp/linux/LiveOS/ |
total 910720 | total 910720 |
drwxr-xr-x 1 root root 24 Nov 3 08:56 ./ | drwxr-xr-x 1 root root 24 Nov 3 08:56 ./ |
</code> | </code> |
| |
Das Image ist aktuell 933MB groß | Das Image ist aktuell 933MB groß. |
| |
mksquashfs squashfs-root/ livefs.squashfs -noappend -always-use-fragments | |
| |
mv /root/squashfs-temp/livefs.squashfs /var/tmp/linux/LiveOS/squashfs.img | |
| |
| |
neues Schema: | |
Datei squashfs.img ist nach den Bearbeitungs-Schritten auf über 1,2GB angewachsen von 838 MB :!: | |
| |
cd /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/squashfs-temp | |
mksquashfs squashfs-root/ livefs.squashfs -noappend -always-use-fragments | |
mv /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/squashfs-temp/livefs.squashfs /var/tmp/linux/LiveOS/squashfs.img | |
| |
| |
| |
| |
<code> | <code> |
ws19233:/var/tmp/linux # l | iglu:/var/tmp/linux # l |
total 0 | total 0 |
drwx------ 1 root root 26 Dec 17 13:39 ./ | drwx------ 1 root root 26 Dec 17 13:39 ./ |
Man könnte noch LänderSprachen entfernen die nicht benötigt werden: | Man könnte noch LänderSprachen entfernen die nicht benötigt werden: |
| |
Den Pfad ''/var/tmp/suse152/boot/x86_64/loader/'' kontrollieren | Den Pfad ''/var/tmp/linux/boot/x86_64/loader/'' kontrollieren |
| |
| |
| |
mkisofs -o suse15_secure.iso -b boot/x86_64/loader/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "openSUSE_Leap_15.1_KDE_Live" . | mkisofs -o suse15_secure.iso -b boot/x86_64/loader/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "openSUSE_Leap_15.1_KDE_Live" . |
mkisofs -o /tmp/minicd.iso -b boot/x86_64/loader/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table /tmp/minicd | |
| |
| |
==== GFXboot.cfg ==== | ==== GFXboot.cfg ==== |