Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Patch initrd

Featured Replies

Perhaps I badly searched, but except for the file makeboarddeb.sh not find the option how you can make changes to the initrd. Perhaps there is some primitive or correct functionality that may make changes in the collected initrd, which gets in the finished image. I need to add some utilities and modify init in the initrd.

 

Возможно Ñ Ð¿Ð»Ð¾Ñ…Ð¾ иÑкал, но кроме файла makeboarddeb.sh не нахожу варианта, как можно внеÑти Ñвои Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð² initrd. Возможно еÑть како-либо правильный функционал, который может вноÑить Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð² Ñобираемый initrd, который попадает в готовый образ. Мне нужно добавить неÑколько утилит и изменить init в initrd.

Perhaps I badly searched, but except for the file makeboarddeb.sh not find the option how you can make changes to the initrd. Perhaps there is some primitive or correct functionality that may make changes in the collected initrd, which gets in the finished image. I need to add some utilities and modify init in the initrd.

Depends on what you want to change. I wouldn't recommend changing any preinstalled script (changes may be lost at any time due to kernel or packages update), but it's relatively easy to add new scripts that will be packed to initrd, and you can try to implement any functionality there (i.e. mount external partition and copy DTB img file to /boot, resize rootfs, update filesystem UUID, ...)

 

You can look in /usr/share/initramfs-tools/ for examples - hooks directory contains initramfs-update hook scripts that may copy additional binaries to the initrd, and scripts contains subdirectories with shell scripts that run at different stages (*-top, *-premount, *-bottom)

 

So you can write a code in customize-image.sh that will copy files to /etc/initramfs-tools/hooks/ and /etc/initramfs-tools/scripts/<some subdirectory>/ and then run "update-initramfs -u -k all"

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.