{"id":20079772,"url":"https://github.com/yunohost/cd_build","last_synced_at":"2025-05-05T23:30:45.309Z","repository":{"id":9108247,"uuid":"10889639","full_name":"YunoHost/cd_build","owner":"YunoHost","description":"SimpleCDD build scripts for YunoHost","archived":false,"fork":false,"pushed_at":"2022-04-05T19:47:39.000Z","size":153,"stargazers_count":2,"open_issues_count":1,"forks_count":6,"subscribers_count":8,"default_branch":"bullseye","last_synced_at":"2024-04-12T16:01:10.511Z","etag":null,"topics":["closember"],"latest_commit_sha":null,"homepage":"http://yunohost.org","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CommonAccord/Cmacc-Org","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YunoHost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-23T18:27:05.000Z","updated_at":"2022-11-12T17:04:03.000Z","dependencies_parsed_at":"2022-08-29T03:01:49.870Z","dependency_job_id":null,"html_url":"https://github.com/YunoHost/cd_build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunoHost%2Fcd_build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunoHost%2Fcd_build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunoHost%2Fcd_build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YunoHost%2Fcd_build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YunoHost","download_url":"https://codeload.github.com/YunoHost/cd_build/tar.gz/refs/heads/bullseye","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224472763,"owners_count":17317067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["closember"],"created_at":"2024-11-13T15:24:38.333Z","updated_at":"2024-11-13T15:24:38.938Z","avatar_url":"https://github.com/YunoHost.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :warning: This repo is archived, superseded by https://github.com/YunoHost/custom-debian-iso\n\n---\n\nCD Build tools\n==============\n\n\nInstallation\n------------\n```\ngit clone git://github.com/YunoHost/cd_build.git\ncd cd_build\nsudo apt-get install -f simple-cdd genisoimage qemu-kvm xorriso syslinux-utils cpio\n```\n\nBuild an image\n---------------\nImportant: Be sure your system is up to date, if no you will see \"missing packages\" error during the script.\n```\n./build-yunohost amd64\n```\n\nOr\n\n```\n./build-yunohost i386\n```\n\nInstall process configuration\n-----------------------------\n\n- menu.cfg doc:\n    - https://wiki.syslinux.org/wiki/index.php?title=Menu\n    - https://wiki.archlinux.org/index.php/syslinux#Configuration\n- Preseed configuration doc: https://www.debian.org/releases/stable/s390x/apb.en.html\n\n\nTroubleshooting\n---------------\n\n### Debugging errors during the install via the ISO\n\n- Launch the install in a virtualbox\n- Actual logs appear in tty 4, you can switch to it by pressing Alt+F4\n- You can manually launch commands from another tty (e.g. the 2nd) but the output will appear in tty4...\n- To actually enter the real system (chroot ?) you'll need to run `in-target`\n- see also .. next section\n\n### Debugging errors in a chroot \n\nThe .deb install can crash for stupid reasons during ISO install because it's in fact ran inside a chroot.\n\nTo easily reproduce and investigate the issue, it's easier to manually create a chroot (for example inside an ynh-dev LXC):\n\n```bash\napt install cdebootstrap -y\ncd /root/\nmkdir mychroot\ncdebootstrap --arch=amd64 bullseye ./mychroot/ http://deb.debian.org/debian/\nmount -t proc none ./mychroot/proc\nmount -o bind /dev ./mychroot/dev\nchroot ./mychroot/ bash\n```\n\n- Running `systemctl` should display \"Running in chroot, ignoring request.\" (compared to some error about PID1 if you didnt mount proc and dev)\n- Then run the install, for example using the install script `curl https://install.yunohost.org | bash` (you'll need to install curl first)\n- The install will crash (otherwise you wouldn't be reading this ? ;))\n- You can `nano /var/lib/dpkg/info/yunohost.postinst` and edit that script ... for example adding `-x` to the shebang (= very first line) to have the debug detail when the script will run. Possibly you may want to also tweak the init regen conf hook call (for example also adding `-x`  to the bash call there)\n- Re-run the install with `apt install yunohost`\n\n### Errors related to mysql-password debconf\n\nTemporaly change rights on /var/cache/debconf/passwords.dat\n\nThis file doesn't contain password.\n\n```\nsudo chmod o+r /var/cache/debconf/passwords.dat\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunohost%2Fcd_build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunohost%2Fcd_build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunohost%2Fcd_build/lists"}