Benutzer-Werkzeuge

Webseiten-Werkzeuge


wiki:livesystem

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
wiki:livesystem [2020/11/04 08:46] – [Alte Repos entfernen] techguruwiki:livesystem [2020/11/11 15:56] (aktuell) – [CHROOT] techguru
Zeile 9: Zeile 9:
  
 OpenSuse 15.2 bootet derzeit nicht. Hier muss ein anderer Weg gefunden werden, da es eine neue Datei verwendet die vorher noch nicht implementiert war. In der neuen OpenSuse 15.2 bootet derzeit nicht. Hier muss ein anderer Weg gefunden werden, da es eine neue Datei verwendet die vorher noch nicht implementiert war. In der neuen
-Version wird ein boot/x86_64/loader/boot_hybrid.img verwendet.+Version wird ein ''boot/x86_64/loader/boot_hybrid.img'' verwendet.
  
  
Zeile 31: Zeile 31:
  
 <code> <code>
-ws19233:/var/tmp/linux # l+iglu:/var/tmp/linux # l
 total 0 total 0
 drwx------ 1 root root    26 Sep 30 17:51 ./ drwx------ 1 root root    26 Sep 30 17:51 ./
Zeile 38: Zeile 38:
 drwxr-xr-x 1 root root    24 Sep 30 17:51 LiveOS/ drwxr-xr-x 1 root root    24 Sep 30 17:51 LiveOS/
 drwxr-xr-x 1 root root    52 Sep 30 17:51 boot/ drwxr-xr-x 1 root root    52 Sep 30 17:51 boot/
-ws19233:/var/tmp/linux # l LiveOS/+ 
 +iglu:/var/tmp/linux # l LiveOS/
 total 818624 total 818624
 drwxr-xr-x 1 root root        24 Sep 30 17:51 ./ drwxr-xr-x 1 root root        24 Sep 30 17:51 ./
 drwx------ 1 root root        26 Sep 30 17:51 ../ drwx------ 1 root root        26 Sep 30 17:51 ../
 -rw------- 1 root root 838270976 Sep 30 17:51 squashfs.img -rw------- 1 root root 838270976 Sep 30 17:51 squashfs.img
-ws19233:/var/tmp/linux #  
 </code> </code>
  
Zeile 76: Zeile 76:
 Das entpackte Image einhängen. Das entpackte Image einhängen.
  
-  mount rootfs.img /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/+  mount rootfs.img /media/sicherung/Images_ISOs/secureDVD/imgmount/
      
-(alt) 
-  sudo mount squashfs-temp/squashfs-root/LiveOS/rootfs.img imgmount/ 
-   
-alte Struktur: 
-  mkdir /root/rootfsimg/ 
-  mount /root/squashfs-temp/squashfs-root/LiveOS/rootfs.img /root/rootfsimg/ 
  
 zusätzliche Verzeichnisse einhängen: zusätzliche Verzeichnisse einhängen:
  
-  sudo mount --bind /sys/ /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/sys/ +  mount --bind /sys/ /media/sicherung/Images_ISOs/secureDVD/imgmount/sys/ 
-  sudo mount --bind /proc/ /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/proc/ +  mount --bind /proc/ /media/sicherung/Images_ISOs/secureDVD/imgmount/proc/ 
-  sudo mount --bind /run/ /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/run/+  mount --bind /run/ /media/sicherung/Images_ISOs/secureDVD/imgmount/run/
      
 ===== CHROOT ===== ===== CHROOT =====
Zeile 95: Zeile 89:
 Mit ''chroot'' das Live System betreten Mit ''chroot'' das Live System betreten
  
-neu  +  chroot /media/sicherung/Images_ISOs/secureDVD/imgmount/
-  sudo chroot /media/sicherung/SicherArbeit/Images_ISOs/secureDVD/imgmount/+
  
-alt 
-  chroot /root/rootfsimg 
  
 Nun arbeitet man direkt auf dem Dateisystem des Live-Systems! Nun arbeitet man direkt auf dem Dateisystem des Live-Systems!
  
 Das Passwort nach Wunsch ändern: Das Passwort nach Wunsch ändern:
 +
   passwd linux   passwd linux
      
 Auch root PW setzen!! Auch root PW setzen!!
 +
   passwd   passwd
  
Zeile 125: Zeile 118:
   zypper rr 1 2 3 4 5 6 7 8 9 10   zypper rr 1 2 3 4 5 6 7 8 9 10
  
-Optional können die openSuse Repos vom lokalen **smt1** eingebunden werden um besser mit ''zypper'' arbeiten zu können:+Optional können die openSuse Repos vom lokalen **reposerver** eingebunden werden um zusätzliche 
 +Software mit ''zypper'' installieren zu können:
  
   zypper ar -e http://smt1.fritz.box/SUSE/distribution/leap/15.2/repo/non-oss/ non-oss   zypper ar -e http://smt1.fritz.box/SUSE/distribution/leap/15.2/repo/non-oss/ non-oss
Zeile 162: Zeile 156:
   zypper --non-interactive rm NetworkManager-pptp   zypper --non-interactive rm NetworkManager-pptp
   zypper --non-interactive rm libwicked-0-6   zypper --non-interactive rm libwicked-0-6
-  zypper --non-interactive rm wicked-service 
      
-Das entfernen vom wicked-service müsste noch geprüft werden, da zu viel entfernt wird. Ansonsten mit folgenden Kommando gelöschte Pakete nachinstallieren:+Das entfernen vom ''wicked-service'' müsste noch geprüft werden, da zu viel entfernt wird. Ansonsten mit folgenden Kommando gelöschte Pakete nachinstallieren:
  
   zypper --non-interactive in plasma5-session-wayland   zypper --non-interactive in plasma5-session-wayland
Zeile 182: Zeile 175:
  
 ==== 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. 
  
  
Zeile 195: Zeile 184:
   ...   ...
  
-<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 ===
Zeile 250: Zeile 211:
      
 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+
  
  
Zeile 269: Zeile 229:
   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 ./
Zeile 281: Zeile 245:
 </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 +
-  +
  
  
Zeile 301: Zeile 252:
   cd /var/tmp/linux/   cd /var/tmp/linux/
  
-nach Nutzung von sudo als haferron nicht nötig: 
-  chown haferron . 
-  chmod 777 . 
  
 <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 ./
Zeile 320: Zeile 268:
 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
  
  
Zeile 327: Zeile 275:
  
   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 ====
wiki/livesystem.1604475992.txt.gz · Zuletzt geändert: 2020/11/04 08:46 von techguru