jacklul
Regular Contributor
Are you on the stock firmware or Asuswrt-Merlin?Hi @jacklul!
I am following the recommendations to install the prerequisites (asuswrt-scripts). After installing the boot script (‘https://raw.githubusercontent.com/jacklul/asuswrt-scripts/master/scripts/scripts-startup.sh’), when I check the value of “nvram get script_usbmount”, I notice that my previous content has been overwritten. What would be the best way to re-enable the swap partition?
Installing the startup script overwrites the variable, yes.
You can install swap.sh from the asuswrt-scripts repository and configure it to use your swap file path.
Or.. you can call "/jffs/scripts/scripts-startup.sh start" from your script and restore nvram value back to your script.
On most devices script_usbmount is getting cleaned by firmware anyway, I'm surprised you have it working on your device.
The fact it generated new password means pihole.toml was missing, which is how it should be, I'm clueless as to why is it using /etc instead of /opt/etc, it shouldn't.Getting this now on re-install
Code:admin@RT-AX88U-17A0:/tmp/home/root# opkg update && opkg install pi-hole Downloading https://bin.entware.net/aarch64-k3.10/Packages.gz Updated list of available packages in /opt/var/opkg-lists/entware Downloading https://jacklul.github.io/entware-pi-hole/aarch64-k3.10/Packages.gz Updated list of available packages in /opt/var/opkg-lists/pi-hole package pi-hole suggests installing logrotate Installing pi-hole (2025.08.19-1) to root... Downloading https://jacklul.github.io/entware-pi-hole/aarch64-k3.10/pi-hole_2025.08.19-1_aarch64-3.10.ipk package pi-hole suggests installing logrotate Configuring pi-hole. [i] Running Pi-hole install/upgrade tasks... [i] Setting random gravity update and updatechecker times... [i] Setting user and group in logrotate file... [i] It looks like the root user is not called 'root' - this can cause issues! [i] Correcting username in crontab file... [i] Generated password for the web interface: s7gH_pKp [i] It can be changed using 'pihole setpassword' command. [✓] Restarting pihole-FTL service... [✓] DNS resolution is available [i] Creating new gravity database Error: unable to open database "/etc/pihole/gravity.db": unable to open database file [✗] Unable to create /etc/pihole/gravity.db [✗] Error creating new gravity database. Please contact support. [✗] Unable to migrate to database. Please contact support. [✗] Gravity database rebuild failed - waited 1 hour for it to complete!
I still can't access the WebUI on a fresh install either but no idea why it's not building the gravity database
I seem to not be able to reproduce this on my device:
Code:
RT-AX58U:/opt/etc# opkg install pi-hole
package pi-hole suggests installing logrotate
Installing pi-hole (2025.08.19-1) to root...
Downloading https://jacklul.github.io/entware-pi-hole/armv7sf-k3.2/pi-hole_2025.08.19-1_ar
mv7-3.2.ipk
package pi-hole suggests installing logrotate
Installing bind-nslookup (9.20.7-1) to root...
Downloading https://bin.entware.net/armv7sf-k3.2/bind-nslookup_9.20.7-1_armv7-3.2.ipk
Installing net-tools-netstat (2.10-2) to root...
Downloading https://bin.entware.net/armv7sf-k3.2/net-tools-netstat_2.10-2_armv7-3.2.ipk
Configuring bind-nslookup.
Configuring net-tools-netstat.
Configuring pi-hole.
[i] Running Pi-hole install/upgrade tasks...
[i] Setting random gravity update and updatechecker times...
[i] Setting user and group in logrotate file...
[i] It looks like the root user is not called 'root' - this can cause issues!
[i] Correcting username in crontab file...
[i] Generated password for the web interface: 3Dcpy7Wn
[i] It can be changed using 'pihole setpassword' command.
[✓] DNS resolution is available
[✗] Migrating the list's cache directory to new location
[i] Creating new gravity database
[i] Migrating content of /opt/etc/pihole/adlists.list into new database
[✓] Deleting existing list cache
[i] Neutrino emissions detected...
[✓] Preparing new gravity database
[✓] Creating new gravity databases
[✓] Pulling blocklist source list into range
[i] Using libz compression
[i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
[✓] Status: Retrieval successful
[✓] Parsed 231413 exact domains and 0 ABP-style domains (blocking, ignored 1 non-domain
entries)
Sample of non-domain entries:
- fe80::1%lo0
[✓] Building tree
[i] Number of gravity domains: 231413 (231413 unique domains)
[i] Number of exact denied domains: 0
[i] Number of regex denied filters: 0
[i] Number of exact allowed domains: 0
[i] Number of regex allowed filters: 0
[✓] Optimizing database
[✓] Swapping databases
[✓] The old database remains available
[✓] Cleaning up stray matter
[✓] Done.
Last edited: