Git Product home page Git Product logo

antonio-petricca / buddy-linux Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 2.0 92 KB

Do you remember "Wubi Ubuntu Installer"? This project is both a replacement and an improvement of Wubi. You will be able to install your Debian (or derived) distribution on a PC without repartitioning it, simply by using a secondary/external boot device (like a USB drive).

License: GNU General Public License v3.0

Shell 100.00%
linux dracut initramfs loopback wubi usb-drive grub grub2 boot-partition shutdown

buddy-linux's Issues

Ubuntu Grub configuration

Seems there is a difference in location of grub configuration files between Ubuntu and Mint distribution. With Ubuntu distros this prevent the correct execution of the installation script indeed.

NTFS-3G not working after upgrading to Linux Mint 19.1

I don't know why, but after upgrading to Linux Mint 19.1 the host device is mounted as read-only.

Workaround:

  • Reboot.
  • Select the GRUB entry you want (the ntfs-3g one).
  • Enter edit mode by pressing E.
  • Change lvm_loops_host_fsoptions=noatime to lvm_loops_host_fsoptions=noatime,rw
  • Boot by pressing F10.

After booting:

  • Edit file /etc/default/grub.d/buddy-linux.cfg.
  • Change HOST_DEV_FSOPTIONS=noatime to HOST_DEV_FSOPTIONS=noatime,rw.
  • Run sudo update-grub.
  • Reboot.

Help regarding writing a HelloWorld dracut module

Hi @antonio-petricca,

I am certain this is not the right place, but being a novice operator with "dracut," I thought I could gain some help from a maintainer who knows the ins & outs of it.

I want to write a very preliminary module that just does an echo command to get myself started with dracut. It would be of great help if you could help/point me to the right resources.

# #My new module is 90avi
# pwd
/usr/lib/dracut/modules.d/90avi

# cat module-setup.sh
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
    return 0
}
depends() {
    echo base lvm
    return 0
}
install() {
    inst_hook cmdline 90 "${moddir}/subroot.sh"
}

# cat subroot.sh
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
. /lib/dracut-lib.sh
info "This is a sample info tag!!!"

# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.10.61-1.ph4 root=PARTUUID=89e99bcd-d182-4769-8752-20650ca6d0cd init=/lib/systemd/systemd ro loglevel=5 rd.debug no-vmw-sta console=tty0 console=ttyS0,115200 net.ifnames=0 plymouth.enable=0 systemd.legacy_systemd_cgroup_controller=yes

However, as per the Serial Console logs, I have collected, I am unable to see the This is a sample info tag!!! log. I am not sure if my module never got inserted to initrd (or) if it is getting executed however, my cmdline args are obscuring it.

I ran dracut -f command to kick start the inird building. Also, I am able to grep my module using dracut --list:

# dracut --list | grep avi
dracut: Executing: /usr/bin/dracut --list
avi

Could you please help?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.