# Deepin **Repository Path**: de-eem/deepin ## Basic Information - **Project Name**: Deepin - **Description**: 制作Deepin V20 Live的腳本 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: https://thoughts.teambition.com/share/606f08ddd45bf9004656706e#title=深度Live鏡像的內容 - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 2 - **Created**: 2020-10-26 - **Last Updated**: 2021-08-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Deepin THIS README IS OUTDATED. WILL PROVIDE A NEW README IN THE FUTURE. Scripts to make custom Deepin Live USB To start from scratch with an official ISO, follow these steps: 1. run partition-disk.sh 2. If boot from an official ISO, the following packages are required to run deepin-boot-maker and convert-to-gpt.sh: deepin-boot-maker sysfsutils live-tools gdisk 3. Boot the GPT formatted live Deepin USB with toram and without persistence option ; then, run customize.sh WARNING: Normally, boot without toram will be better since update-initramfs is disabled if live system is running without media mounted on /lib/live/mount/medium. ALWAYS udiskctl mount the live Deepin USB with sudo. DO NOT FORGET to make an internet connection before running customize.sh! NOTES: We can overlay filesystem.squashfs from the official ISO without unsquashfs it. % sudo mount -t overlay -o lowerdir=/lib/live/mount/rootfs/filesystem.squashfs,upperdir=/tmp/overlay,workdir=/tmp/workdir overlay squashfs-root Because persistence is on f2fs which is not supported with the original Deepin live USB, force to update filesystem.squashfs at /media/root/DEEPINOS/live (ANSWER YES when asked). 4. Run edit-boot-options.sh with live-media-path=deepin module=deepin persistence options and reboot without these options. 5. Mount live USB as user if boot with toram; then, run update-live.sh ==================================================================================================================================== To upgrade from a customized Live USB, you just need to run customize.sh and update-live.sh after a reboot. WARNING: DO NOT FORGET to make an internet connection before running customize.sh! NOTES: If boot with persistence, udiskctl mount the live Deepin USB with sudo. We can also overlay filesystem.squashfs. The overlay and squashfs-root need 755 permission or apt will give some error about _apt permission. % sudo mkdir -m 755 /tmp/overlay % sudo mkdir -m 700 /tmp/workdir % sudo mkdir -m 755 squashfs-root % sudo mount -t overlay -o lowerdir=/lib/live/mount/rootfs/filesystem.squashfs,upperdir=/tmp/overlay,workdir=/tmp/workdir overlay squashfs-root To be cautious about a failed upgrade, always backup the old filesystem.squashfs with a hard link % sudo ln /usr/lib/live/mount/persistence/ deepin/filesystem.squashfs{,.orig}