{"id":13876096,"url":"https://github.com/kvaps/livenetsquash","last_synced_at":"2025-04-12T05:54:29.406Z","repository":{"id":47680695,"uuid":"106516632","full_name":"kvaps/livenetsquash","owner":"kvaps","description":"dracut-live-netroot","archived":false,"fork":false,"pushed_at":"2021-08-18T11:21:47.000Z","size":4,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T05:54:16.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kvaps.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":"2017-10-11T06:53:37.000Z","updated_at":"2024-09-07T04:35:54.000Z","dependencies_parsed_at":"2022-09-13T01:24:06.885Z","dependency_job_id":null,"html_url":"https://github.com/kvaps/livenetsquash","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/kvaps%2Flivenetsquash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2Flivenetsquash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2Flivenetsquash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2Flivenetsquash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvaps","download_url":"https://codeload.github.com/kvaps/livenetsquash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525156,"owners_count":21118616,"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":[],"created_at":"2024-08-06T06:01:00.738Z","updated_at":"2025-04-12T05:54:29.373Z","avatar_url":"https://github.com/kvaps.png","language":"Shell","funding_links":[],"categories":["Shell","others"],"sub_categories":[],"readme":"# Livenetsquash dracut module\n\nThis module allows to boot live linux system from squashed image that downloaded from http-server.\n\n## Module installation\n\n```\ncd /tmp\ncurl -OL https://github.com/kvaps/livenetsquash/archive/master.tar.gz\ntar xvf master.tar.gz\nmv livenetsquash-master/dracut/* /usr/lib/dracut/modules.d/\nrm -rf livenetsquash-master master.tar.gz\nvim /etc/dracut.conf\n```\n\nadd modules:\n```\ndracutmodules+=\"network base livenetsquash overlay-root\"\n```\n\ngenerate initrd image:\n```\ndracut -f /boot/initramfs -v\n```\n\n## Squashed image\n\nBuild squashed image, example:\n\n```\nmksquashfs \u003crootfs_path\u003e rootfs.squash -noappend\n```\n\nI advise you to use [darkhttpd](https://github.com/ryanmjacobs/darkhttpd) as simple http server for store your squased image.\n\n## Bootloader configuration\n\nExample `pxelinux.cfg/default`\n\n```\ndefault centos7\nontimeout centos7\n\nlabel centos7\n    kernel vmlinuz\n    append initrd=initramfs selinux=0 root=live:http://boot-server/rootfs.squash rootovl=1 ro rd.live.image\n```\n\nExample `grub.cfg` (support efi and http-method)\n\n```\nset timeout=3\nmenuentry 'Linux diskless' --class os {\n\n     insmod efi_gop\n     insmod efi_uga\n\n     set net_default_server=${pxe_default_server}\n\n     echo \"Loading Linux from http://${net_default_server}/vmlinz ...\"\n     linux (http)/vmlinuz root=live:http://${pxe_default_server}/rootfs.squash rootovl=1 ro rd.live.image\n\n     echo \"Loading initial ramdisk from http://${pxe_default_server}/initramfs ...\"\n     initrd (http)/initramfs\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvaps%2Flivenetsquash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvaps%2Flivenetsquash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvaps%2Flivenetsquash/lists"}